(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([["lazy-react-partial-actions-custom-images-retention-policy","lazy-react-partial-actions-policies","lazy-react-partial-actions-survey","lazy-react-partial-browser-geo-location","lazy-react-partial-codespaces-survey","lazy-react-partial-consent-experience","lazy-react-partial-copilot-assisted-review-upsell","lazy-react-partial-copilot-code-review-feedback","lazy-react-partial-copilot-code-review-upsell","lazy-react-partial-copilot-code-review-view-session","lazy-react-partial-copilot-content-exclusion","lazy-react-partial-copilot-survey","lazy-react-partial-custom-signup-content-manager","lazy-react-partial-date-picker-partial","lazy-react-partial-delete-configuration-dialog","lazy-react-partial-education-schools-auto-complete","lazy-react-partial-email-subscription-form","lazy-react-partial-enterprise-team","lazy-react-partial-external-group-team-mismatch-widget","lazy-react-partial-growth-banner-partial","lazy-react-partial-network-configurations-select-panel","lazy-react-partial-new-agent-task-button","lazy-react-partial-react-partial-anchor-example","lazy-react-partial-react-sandbox-sidenav","lazy-react-partial-search-results","lazy-react-partial-security-center-pagination","lazy-react-partial-sponsors-dashboard-your-sponsors","lazy-react-partial-sponsors-newsletters","lazy-react-partial-trade-screening-status-banner","packages_action-bar_src_OverflowMenu_module_css-packages_action-bar_src_VisibleAndOverflowCon-19f366","repo-deployments"],{4929:(e,n,l)=>{"use strict";l.d(n,{V:()=>s});var a=l(74848),t=l(29731),i=l(34164);let r={metadata:"Metadata-module__metadata--ODMG0",secondary:"Metadata-module__secondary--1te4w",primary:"Metadata-module__primary--S8Orc",alignRight:"Metadata-module__alignRight--A1PHa"};function s({children:e,alignment:n,variant:l,...s}){return(0,a.jsx)("div",{...(0,t.G)("list-view-item-metadata-item"),...s,className:(0,i.$)(r.metadata,"primary"===l?r.primary:r.secondary,"right"===n&&r.alignRight,s.className),children:e})}try{s.displayName||(s.displayName="ListItemMetadata")}catch{}},10436:(e,n,l)=>{"use strict";l.d(n,{lG:()=>f,m4:()=>_,jl:()=>u});var a=l(1481),t=l(49539),i=l(38267),r=l(96540),s=l(74848);let o=(0,i.Ay)(a.A).withConfig({shouldForwardProp:e=>"sx"!==e}).withConfig({displayName:"TabNav__StyledTabNav",componentId:"sc-13kad3t-0"})(["",""],t.A),d=(0,i.Ay)(a.A.Link).withConfig({shouldForwardProp:e=>"sx"!==e}).withConfig({displayName:"TabNav__StyledTabNavLink",componentId:"sc-13kad3t-1"})(["",""],t.A),u=Object.assign(({as:e,...n})=>(0,s.jsx)(o,{...n,...e?{forwardedAs:e}:{}}),{Link:(0,r.forwardRef)(({as:e,...n},l)=>(0,s.jsx)(d,{...n,...e?{forwardedAs:e}:{},ref:l}))});var c=l(99906),m=l(45846);let p=(0,r.forwardRef)(function(e,n){return(0,s.jsx)(m.A,{as:c.A,ref:n,...e})}),g=(0,r.forwardRef)(({as:e,...n},l)=>(0,s.jsx)(p,{...n,...e?{forwardedAs:e}:{},ref:l})),y=(0,r.forwardRef)(function(e,n){return(0,s.jsx)(m.A,{as:c.A.Header,ref:n,...e})}),f=Object.assign(g,{Header:(0,r.forwardRef)(({as:e,...n},l)=>(0,s.jsx)(y,{...n,...e?{forwardedAs:e}:{},ref:l}))});var k=l(10095);let h=(0,i.Ay)(k.A).withConfig({shouldForwardProp:e=>"sx"!==e}).withConfig({displayName:"Octicon__StyledOcticon",componentId:"sc-jtj3m8-0"})(["",""],({color:e,sx:n})=>(0,t.A)({sx:{color:e,...n}})),_=(0,r.forwardRef)(({as:e,...n},l)=>(0,s.jsx)(h,{...n,...e?{forwardedAs:e}:{},ref:l}));var x=l(55255);let b=(0,i.Ay)(x.A).withConfig({shouldForwardProp:e=>"sx"!==e}).withConfig({displayName:"Tooltip__StyledTooltip",componentId:"sc-145jcib-0"})(["",""],t.A),F=(0,r.forwardRef)(function({as:e,...n},l){return(0,s.jsx)(b,{...n,...e?{forwardedAs:e}:{},ref:l})});F.alignments=x.A.alignments,F.directions=x.A.directions,F.__SLOT__=x.A.__SLOT__;var L=l(9470);let S=(0,r.forwardRef)(function(e,n){return(0,s.jsx)(m.A,{as:L.l,ref:n,...e})}),K=(0,i.Ay)(L.l.Item).withConfig({shouldForwardProp:e=>"sx"!==e}).withConfig({displayName:"ActionList__StyledActionListItem",componentId:"sc-1ugfmds-0"})(["",""],t.A);Object.assign(S,{Item:(0,r.forwardRef)(({as:e,...n},l)=>(0,s.jsx)(K,{...n,...e?{forwardedAs:e}:{},ref:l})),Group:function(e){return(0,s.jsx)(m.A,{as:L.l.Group,...e})},Divider:function(e){return(0,s.jsx)(m.A,{as:L.l.Divider,...e})}})},11501:(e,n,l)=>{"use strict";l.d(n,{A:()=>t});let a=function(){var e=[{defaultValue:null,kind:"LocalArgument",name:"owner"},{defaultValue:null,kind:"LocalArgument",name:"repo"}],n=[{kind:"Variable",name:"name",variableName:"repo"},{kind:"Variable",name:"owner",variableName:"owner"}],l={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},a={alias:null,args:null,kind:"ScalarField",name:"viewerCanAdminister",storageKey:null},t={alias:null,args:null,kind:"ScalarField",name:"canUseEnvironments",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"login",storageKey:null},r={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},s={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},o={alias:null,args:null,concreteType:null,kind:"LinkedField",name:"owner",plural:!1,selections:[r,i,s],storageKey:null},d=[{kind:"Literal",name:"first",value:50},{kind:"Literal",name:"pinnedEnvironmentFilter",value:"NONE"}],u={alias:null,args:null,kind:"ScalarField",name:"isPinned",storageKey:null},c={alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null},m={alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null},p={alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null},g={alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[m,p],storageKey:null},y=[{alias:null,args:null,concreteType:"EnvironmentEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"Environment",kind:"LinkedField",name:"node",plural:!1,selections:[s,l,u,r],storageKey:null},c],storageKey:null},g],f=["pinnedEnvironmentFilter"],k={kind:"Literal",name:"first",value:10},h=[k,{kind:"Literal",name:"pinnedEnvironmentFilter",value:"ONLY"}],_=[{kind:"Literal",name:"environments",value:[]},{kind:"Literal",name:"first",value:25},{kind:"Literal",name:"orderBy",value:{direction:"DESC",field:"CREATED_AT"}}],x={alias:null,args:null,kind:"ScalarField",name:"databaseId",storageKey:null},b={alias:null,args:null,kind:"ScalarField",name:"createdAt",storageKey:null},F={alias:null,args:null,concreteType:"DeploymentStatus",kind:"LinkedField",name:"latestStatus",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"logUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"environmentUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"state",storageKey:null},s],storageKey:null},L={alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},S={alias:null,args:null,concreteType:"Commit",kind:"LinkedField",name:"commit",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"messageHeadlineHTML",storageKey:null},s],storageKey:null},K={kind:"ClientExtension",selections:[{alias:null,args:null,kind:"ScalarField",name:"__id",storageKey:null}]},w=[k],N={alias:null,args:null,concreteType:"Deployment",kind:"LinkedField",name:"latestCompletedDeployment",plural:!1,selections:[x,b,F,S,s],storageKey:null},j=[{kind:"Literal",name:"first",value:2},{kind:"Literal",name:"names",value:["github-pages","production"]}];return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"DeploymentsPageQuery",selections:[{alias:null,args:n,concreteType:"Repository",kind:"LinkedField",name:"repository",plural:!1,selections:[l,a,t,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"owner",plural:!1,selections:[i],storageKey:null},{args:null,kind:"FragmentSpread",name:"EnvironmentListListings"},{args:null,kind:"FragmentSpread",name:"EnvironmentListingsPinned"},{args:null,kind:"FragmentSpread",name:"DeploymentsTablePagination"},{args:null,kind:"FragmentSpread",name:"ActivePinnedEnvironments"},{args:null,kind:"FragmentSpread",name:"ActiveStickyDeployments"}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"DeploymentsPageQuery",selections:[{alias:null,args:n,concreteType:"Repository",kind:"LinkedField",name:"repository",plural:!1,selections:[l,a,t,o,{alias:null,args:d,concreteType:"EnvironmentConnection",kind:"LinkedField",name:"environments",plural:!1,selections:y,storageKey:'environments(first:50,pinnedEnvironmentFilter:"NONE")'},{alias:null,args:d,filters:f,handle:"connection",key:"Repository_environments",kind:"LinkedHandle",name:"environments"},s,{alias:"listPinnedEnvironments",args:h,concreteType:"EnvironmentConnection",kind:"LinkedField",name:"environments",plural:!1,selections:y,storageKey:'environments(first:10,pinnedEnvironmentFilter:"ONLY")'},{alias:"listPinnedEnvironments",args:h,filters:f,handle:"connection",key:"Repository_listPinnedEnvironments",kind:"LinkedHandle",name:"environments"},{alias:null,args:_,concreteType:"DeploymentConnection",kind:"LinkedField",name:"deployments",plural:!1,selections:[{alias:null,args:null,concreteType:"DeploymentEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"Deployment",kind:"LinkedField",name:"node",plural:!1,selections:[x,{alias:null,args:null,kind:"ScalarField",name:"commitOid",storageKey:null},b,{alias:null,args:null,kind:"ScalarField",name:"environment",storageKey:null},F,{alias:null,args:null,kind:"ScalarField",name:"refName",storageKey:null},{alias:null,args:null,concreteType:"Repository",kind:"LinkedField",name:"repository",plural:!1,selections:[l,o,s],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"creator",plural:!1,selections:[r,i,{alias:null,args:null,kind:"ScalarField",name:"avatarUrl",storageKey:null},L,s],storageKey:null},{alias:null,args:null,concreteType:"CheckRun",kind:"LinkedField",name:"checkRun",plural:!1,selections:[{alias:null,args:null,concreteType:"CheckSuite",kind:"LinkedField",name:"checkSuite",plural:!1,selections:[{alias:null,args:null,concreteType:"WorkflowRun",kind:"LinkedField",name:"workflowRun",plural:!1,selections:[L,{alias:null,args:null,kind:"ScalarField",name:"runNumber",storageKey:null},{alias:null,args:null,concreteType:"Workflow",kind:"LinkedField",name:"workflow",plural:!1,selections:[l,s],storageKey:null},s],storageKey:null},s],storageKey:null},s],storageKey:null},S,s,r,K],storageKey:null},c],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[m,{alias:null,args:null,kind:"ScalarField",name:"startCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasPreviousPage",storageKey:null},p],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"totalCount",storageKey:null}],storageKey:'deployments(environments:[],first:25,orderBy:{"direction":"DESC","field":"CREATED_AT"})'},{alias:null,args:_,filters:["environments","orderBy","filterBy"],handle:"connection",key:"Repository_deployments",kind:"LinkedHandle",name:"deployments"},{alias:null,args:w,concreteType:"PinnedEnvironmentConnection",kind:"LinkedField",name:"pinnedEnvironments",plural:!1,selections:[{alias:null,args:null,concreteType:"PinnedEnvironmentEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"PinnedEnvironment",kind:"LinkedField",name:"node",plural:!1,selections:[x,{alias:null,args:null,kind:"ScalarField",name:"position",storageKey:null},{alias:null,args:null,concreteType:"Environment",kind:"LinkedField",name:"environment",plural:!1,selections:[s,l,u,N],storageKey:null},s,K,r],storageKey:null},c],storageKey:null},g,K],storageKey:"pinnedEnvironments(first:10)"},{alias:null,args:w,filters:null,handle:"connection",key:"Repository_pinnedEnvironments",kind:"LinkedHandle",name:"pinnedEnvironments"},{alias:"stickyEnvironments",args:j,concreteType:"EnvironmentConnection",kind:"LinkedField",name:"environments",plural:!1,selections:[{alias:null,args:null,concreteType:"EnvironmentEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"Environment",kind:"LinkedField",name:"node",plural:!1,selections:[x,s,l,N,r],storageKey:null},c],storageKey:null},g],storageKey:'environments(first:2,names:["github-pages","production"])'},{alias:"stickyEnvironments",args:j,filters:["names"],handle:"connection",key:"Repository_stickyEnvironments",kind:"LinkedHandle",name:"environments"}],storageKey:null}]},params:{id:"86046c91f7fcb6a42ab7e45eafbe1dac",metadata:{},name:"DeploymentsPageQuery",operationKind:"query",text:null}}}();a.hash="5e82ed43b66ca910154af84d6ba1be76";let t=a},13523:(e,n,l)=>{"use strict";l.d(n,{$r:()=>r,M1:()=>s,li:()=>t,pS:()=>d,wE:()=>o});var a=l(71315);let t="X-Fetch-Nonce",i=new Set;function r(e){i.add(e)}function s(){return i.values().next().value||""}function o(e){let n={};return void 0!==e&&(n["X-Fetch-Nonce-To-Validate"]=e),void 0===e?n[t]=s():i.has(e)?n[t]=e:n[t]=Array.from(i).join(","),n}function d(){let e=a.XC?.head?.querySelector('meta[name="fetch-nonce"]')?.content||"";e&&r(e)}},25111:(e,n,l)=>{"use strict";l.d(n,{X:()=>f});var a,t=l(74848),i=l(50467);let r=new Map,s=class Resource{load(){return null==this._promise&&(this._promise=this._loader(),(async()=>{try{this._result=await this._promise}catch(e){throw this._error=e,e}})()),this._promise}getModuleId(){return this._moduleId}get(){return this._result}getModuleIfRequired(){return this.get()}read(){if(null!=this._result)return this._result;if(null!=this._error)throw this._error;throw this._promise}constructor(e,n,l=null){(0,i._)(this,"_moduleId",void 0),(0,i._)(this,"_loader",void 0),(0,i._)(this,"_error",void 0),(0,i._)(this,"_promise",void 0),(0,i._)(this,"_result",void 0),this._moduleId=e,this._loader=n,this._error=null,this._promise=null,this._result=l}};function o(e,n,l=null){let a=r.get(e);return null==a&&(a=new s(e,n,l),r.set(e,a)),a}try{o.displayName||(o.displayName="JSResource")}catch{}var d=l(27744),u=l(80443),c=l(30721),m=l(96540),p=l(69487),g=l(18312);let y=e=>e;function f({path:e,resourceName:n,componentLoader:l,Component:a,queryConfigs:i,transformVariables:r=y,title:s,relayEnvironment:k,fallback:h,maxAge:_,errorCallbacks:x,transitionType:b=d.E.FETCH_THEN_TRANSITION},F={}){let L=n||a?.displayName;if(void 0===L)throw Error("invalid internal resourceName");let S={root:o(L,l,a),getPreloadProps:e=>({queries:function(e,n,l,a){let t={};for(let[i,{concreteRequest:r,variableMappers:s}]of Object.entries(e)){let e=function(e,n,l,a){let t=n(e?.(l,a)??{},l,a);for(let e in t)if(void 0===t[e])return;return t}(s,l,n,a);e&&(t[i]={variables:Object.fromEntries(Object.entries(e).sort(([e],[n])=>en))),parameters:{...r,params:{...r.params,metadata:{...r.params.metadata,isRelayRouteRequest:!0}}}})}return t}(i,e,r,k)})};function K({pathParams:e,searchParams:n,embeddedData:l}){let a=new Map;if(l?.payload?.preloadedQueries)for(let{queryId:e,variables:n,result:t,timestamp:i}of l.payload.preloadedQueries){let l=a.get(e);l||(l=new Map);let r=JSON.stringify(n);t.timestamp=i,l.set(r,t),a.set(e,l)}let t=new Map;if(l?.payload?.preloadedSubscriptions)for(let[e,n]of Object.entries(l.payload.preloadedSubscriptions)){let l=new Map;for(let[e,a]of Object.entries(n))l.set(e,a);t.set(e,l)}l?.payload?.preloaded_records&&k.getStore().publish(new p.RecordSource(l?.payload?.preloaded_records));let{baseUrl:i,getPreloadedSubscriptions:r}=k.options,o=r?r():void 0,d=new c.VB(a,l?.enabled_features,function(e,n){if(!n||0===n.size)return e;let l=new Map(e);for(let[e,a]of n)l.has(e)||l.set(e,a);return l}(t,o),i,_,x);k.__setNet(d),k.options={baseUrl:i,getPreloadedSubscriptions:()=>d.getPreloadedSubscriptions()};let u=(0,g.loadEntryPoint)({getEnvironment:()=>k},S,{pathParams:e,searchParams:n});return{type:"loaded",data:{entryPointReference:u},title:s,isValid:()=>!Object.values(u.queries).some(e=>e.isDisposed)}}return{path:e,Component:()=>{let e=(0,u.N)(),n=e?.data?.entryPointReference;return n?(0,t.jsx)(g.RelayEnvironmentProvider,{environment:k,children:(0,t.jsx)(m.Suspense,{fallback:h,children:(0,t.jsx)(g.EntryPointContainer,{entryPointReference:n,props:F})})}):null},coreLoader:async function e({pathParams:e,location:n}){let l=K({pathParams:e,searchParams:new URLSearchParams(n.search)});return b===d.E.FETCH_THEN_TRANSITION&&await Promise.allSettled(Object.values(l.data.entryPointReference.queries).map(e=>e.source?.toPromise())),l},loadFromEmbeddedData:function({pathParams:e,embeddedData:n,location:l}){let{data:a,isValid:t}=K({pathParams:e,embeddedData:n,searchParams:new URLSearchParams(l.search)});return{data:a,title:s,isValid:t}},transitionType:b}}try{(a=Wrapper).displayName||(a.displayName="Wrapper")}catch{}},31993:(e,n,l)=>{"use strict";function a(e){return e}l.d(n,{j:()=>a})},34052:(e,n,l)=>{"use strict";var a=l(9963),t=l(41241),i=l(90007).loadQuery,r=l(13635),s=l(50456),o=l(40121),d=l(7360),u=l(73720),c=l(42695),m=l(15940),p=l(39420),g=l(6505),y=l(71517),f=l(7058),k=l(53386),h=l(91529),_=l(69487);e.exports={ConnectionHandler:_.ConnectionHandler,applyOptimisticMutation:_.applyOptimisticMutation,commitLocalUpdate:_.commitLocalUpdate,commitMutation:_.commitMutation,graphql:_.graphql,readInlineData:_.readInlineData,requestSubscription:_.requestSubscription,EntryPointContainer:a,RelayEnvironmentProvider:s,ProfilerContext:r,fetchQuery:_.fetchQuery,loadQuery:i,loadEntryPoint:t,useFragment:d,useLazyLoadQuery:u,useEntryPointLoader:o,useQueryLoader:g,useMutation:c,usePaginationFragment:m,usePreloadedQuery:p,useRefetchableFragment:y,useRelayEnvironment:f,useSubscribeToInvalidationState:k,useSubscription:h}},34392:(e,n,l)=>{"use strict";l.d(n,{s:()=>i});var a=l(74848),t=l(87448);function i(){return(0,a.jsx)(t.az,{className:"Popover js-hovercard-content",sx:{position:"absolute",display:"none",outline:"none"},tabIndex:0,children:(0,a.jsx)("div",{className:"Popover-message Popover-message--bottom-left Popover-message--large Box color-shadow-large",style:{width:"360px"}})})}try{i.displayName||(i.displayName="PreviewCardOutlet")}catch{}},34784:(e,n,l)=>{e.exports=l(34052)},37285:(e,n,l)=>{"use strict";l.d(n,{Av:()=>s,BM:()=>a,HX:()=>c,M_:()=>m,RD:()=>u,rb:()=>t});let a="GraphQLTraces",t="GraphQLTracingRefresh",i=r()?decodeURIComponent(new URLSearchParams(window.location.search).get("disable_clusters")||"").split(",").filter(e=>""!==e):[];function r(){return"undefined"!=typeof window}function s(e){if(!r()||!o()||!e)return;let n=window;n&&!n[a]&&(n[a]=[]),n&&e.__trace&&(n[a].push(e.__trace),"function"==typeof n[t]&&n[t]())}function o(){if(!r())return!1;let e=window;return"true"===new URLSearchParams(window.location.search).get("_tracing")||e&&void 0!==e[a]}function d(){return i.length>0}function u(e){if(!r()||!o()&&!d())return e;let n=new URL(e,window.location.origin);return o()&&n.searchParams.set("_tracing","true"),d()&&n.searchParams.set("disable_clusters",i.join(",")),n.pathname+n.search}function c(e){return i.indexOf(e)>-1}function m(e){if(!r())return;let n=i.indexOf(e);n>-1?i.splice(n,1):i.push(e);let l=new URLSearchParams(window.location.search);l.set("disable_clusters",i.join(",")),window.location.search=l.toString()}},37732:(e,n,l)=>{"use strict";l.d(n,{a:()=>r});let a=new Set(["children","localName","ref","style","className"]),t=new WeakMap,i=(e,n,l,a,i)=>{let r=null==i?void 0:i[n];void 0===r||l===a?null==l&&n in HTMLElement.prototype?e.removeAttribute(n):e[n]=l:((e,n,l)=>{let a=t.get(e);void 0===a&&t.set(e,a=new Map);let i=a.get(n);void 0!==l?void 0===i?(a.set(n,i={handleEvent:l}),e.addEventListener(n,i)):i.handleEvent=l:void 0!==i&&(a.delete(n),e.removeEventListener(n,i))})(e,r,l)};function r(e=window.React,n,l,t,s){let o,d,u;void 0===n?({tagName:d,elementClass:u,events:t,displayName:s}=e,o=e.react):(o=e,u=l,d=n);let c=o.Component,m=o.createElement,p=new Set(Object.keys(null!=t?t:{}));let v=class v extends c{constructor(){super(...arguments),this.o=null}t(e){if(null!==this.o)for(let n in this.i)i(this.o,n,this.props[n],e?e[n]:void 0,t)}componentDidMount(){var e;this.t(),null==(e=this.o)||e.removeAttribute("defer-hydration")}componentDidUpdate(e){this.t(e)}render(){let{_$Gl:e,...n}=this.props;this.h!==e&&(this.u=n=>{null!==e&&("function"==typeof e?e(n):e.current=n),this.o=n,this.h=e}),this.i={};let l={ref:this.u};for(let[e,t]of Object.entries(n))a.has(e)?l["className"===e?"class":e]=t:p.has(e)||e in u.prototype?this.i[e]=t:l[e]=t;return l.suppressHydrationWarning=!0,m(d,l)}};v.displayName=null!=s?s:u.name;let g=o.forwardRef((e,n)=>m(v,{...e,_$Gl:n},null==e?void 0:e.children));return g.displayName=v.displayName,g}},41245:(e,n,l)=>{"use strict";l.d(n,{A:()=>a});let a=(e,n)=>{let l=new URL(e,window.location.origin),a=new URL(n,window.location.origin);return a.href.includes("#")&&l.host===a.host&&l.pathname===a.pathname&&l.search===a.search}},43617:(e,n,l)=>{"use strict";l.d(n,{Q:()=>o});var a=l(74848),t=l(29731),i=l(34164),r=l(35220);let s={container:"MainContent-module__container--NyRpm",inner:"MainContent-module__inner--qD0Pb",compact:"MainContent-module__compact--S3brA"};function o({children:e}){let{variant:n}=(0,r.e)();return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{...(0,t.G)("list-view-item-main-content"),className:s.container,children:(0,a.jsx)("div",{className:(0,i.$)(s.inner,"compact"===n&&s.compact),children:e})})})}try{o.displayName||(o.displayName="ListItemMainContent")}catch{}},44686:(e,n,l)=>{"use strict";l.d(n,{y:()=>r});var a=l(74848),t=l(69726),i=l(87448);let r=()=>(0,a.jsx)(i.az,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",margin:6},children:(0,a.jsx)(t.A,{})});try{r.displayName||(r.displayName="FallbackSpinner")}catch{}},46632:(e,n,l)=>{"use strict";l.d(n,{A:()=>i});var a=l(21738);function t(e,n){if("function"!=typeof e||null!=n&&"function"!=typeof n)throw TypeError("Expected a function");var l=function(){var a=arguments,t=n?n.apply(this,a):a[0],i=l.cache;if(i.has(t))return i.get(t);var r=e.apply(this,a);return l.cache=i.set(t,r)||i,r};return l.cache=new(t.Cache||a.A),l}t.Cache=a.A;let i=t},51880:(e,n,l)=>{"use strict";l.d(n,{B:()=>o});var a=l(74848),t=l(29731),i=l(34164),r=l(24347);let s={container:"LeadingContent-module__container--cui6v",isSelectable:"LeadingContent-module__isSelectable--EzWvg"},o=({style:e,className:n,children:l})=>{let{isSelectable:o}=(0,r.v)();return(0,a.jsx)("div",{className:(0,i.$)(s.container,o&&s.isSelectable,n),...(0,t.G)("list-view-item-leading-content"),style:e,children:l})};try{o.displayName||(o.displayName="ListItemLeadingContent")}catch{}},51987:(e,n,l)=>{"use strict";l.d(n,{jC:()=>o,kt:()=>r,tV:()=>s});var a=l(87057),t=l(69599),i=l(13523);function r(e){let n={"X-Requested-With":"XMLHttpRequest",...(0,i.wE)(e)};return(0,t.G7)("client_version_header")&&(n={...n,[a.S]:(0,a.O)()}),n}function s(e,n){for(let[l,a]of Object.entries(r(n)))e.set(l,a)}function o(e){return{"X-GitHub-App-Type":e}}},52475:(e,n,l)=>{"use strict";l.d(n,{_S:()=>i,cB:()=>s,cW:()=>r});var a=l(53627),t=l(71315);let i=()=>{let e=(0,a.JV)().appId;return e&&"rails"!==e?e:crypto.randomUUID()},r=e=>{(0,a.C3)({appId:e})},s=()=>{let e=document.querySelector("react-app")||document.querySelector("projects-v2");return e?.uuid||"rails"};t.cg?.addEventListener("hashchange",()=>{(0,a.C3)({appId:s()})},!0)},53747:(e,n,l)=>{"use strict";l.r(n),l.d(n,{Deployments:()=>eM});var a,t=l(74848),i=l(11501),r=l(87555),s=l(87448),o=l(18312);let d=function(){var e=[{defaultValue:null,kind:"LocalArgument",name:"cursor"},{defaultValue:[],kind:"LocalArgument",name:"env"},{defaultValue:null,kind:"LocalArgument",name:"filterBy"},{defaultValue:25,kind:"LocalArgument",name:"first"},{defaultValue:null,kind:"LocalArgument",name:"id"}],n=[{kind:"Variable",name:"id",variableName:"id"}],l={kind:"Variable",name:"filterBy",variableName:"filterBy"},a={kind:"Variable",name:"first",variableName:"first"},t={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},r=[{kind:"Variable",name:"after",variableName:"cursor"},{kind:"Variable",name:"environments",variableName:"env"},l,a,{kind:"Literal",name:"orderBy",value:{direction:"DESC",field:"CREATED_AT"}}],s={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},o={alias:null,args:null,kind:"ScalarField",name:"login",storageKey:null},d={alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null};return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"DeploymentsPaginatedQuery",selections:[{alias:null,args:n,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{args:[{kind:"Variable",name:"cursor",variableName:"cursor"},{kind:"Variable",name:"env",variableName:"env"},l,a],kind:"FragmentSpread",name:"DeploymentsTablePagination"}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"DeploymentsPaginatedQuery",selections:[{alias:null,args:n,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[t,i,{kind:"InlineFragment",selections:[{alias:null,args:r,concreteType:"DeploymentConnection",kind:"LinkedField",name:"deployments",plural:!1,selections:[{alias:null,args:null,concreteType:"DeploymentEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"Deployment",kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"databaseId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"commitOid",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"createdAt",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"environment",storageKey:null},{alias:null,args:null,concreteType:"DeploymentStatus",kind:"LinkedField",name:"latestStatus",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"logUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"environmentUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"state",storageKey:null},i],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"refName",storageKey:null},{alias:null,args:null,concreteType:"Repository",kind:"LinkedField",name:"repository",plural:!1,selections:[s,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"owner",plural:!1,selections:[t,o,i],storageKey:null},i],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"creator",plural:!1,selections:[t,o,{alias:null,args:null,kind:"ScalarField",name:"avatarUrl",storageKey:null},d,i],storageKey:null},{alias:null,args:null,concreteType:"CheckRun",kind:"LinkedField",name:"checkRun",plural:!1,selections:[{alias:null,args:null,concreteType:"CheckSuite",kind:"LinkedField",name:"checkSuite",plural:!1,selections:[{alias:null,args:null,concreteType:"WorkflowRun",kind:"LinkedField",name:"workflowRun",plural:!1,selections:[d,{alias:null,args:null,kind:"ScalarField",name:"runNumber",storageKey:null},{alias:null,args:null,concreteType:"Workflow",kind:"LinkedField",name:"workflow",plural:!1,selections:[s,i],storageKey:null},i],storageKey:null},i],storageKey:null},i],storageKey:null},{alias:null,args:null,concreteType:"Commit",kind:"LinkedField",name:"commit",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"messageHeadlineHTML",storageKey:null},i],storageKey:null},i,t,{kind:"ClientExtension",selections:[{alias:null,args:null,kind:"ScalarField",name:"__id",storageKey:null}]}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"startCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasPreviousPage",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"totalCount",storageKey:null}],storageKey:null},{alias:null,args:r,filters:["environments","orderBy","filterBy"],handle:"connection",key:"Repository_deployments",kind:"LinkedHandle",name:"deployments"}],type:"Repository",abstractKey:null}],storageKey:null}]},params:{id:"f6391648c3ca4600bdcb73b1f0e446c7",metadata:{},name:"DeploymentsPaginatedQuery",operationKind:"query",text:null}}}();d.hash="2d4ceb5140bd2711ed08961ce64e0d69";let u=function(){var e=["deployments"],n={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},l={alias:null,args:null,kind:"ScalarField",name:"login",storageKey:null},a={alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},t={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{argumentDefinitions:[{defaultValue:null,kind:"LocalArgument",name:"cursor"},{defaultValue:[],kind:"LocalArgument",name:"env"},{defaultValue:null,kind:"LocalArgument",name:"filterBy"},{defaultValue:25,kind:"LocalArgument",name:"first"}],kind:"Fragment",metadata:{connection:[{count:"first",cursor:"cursor",direction:"forward",path:e}],refetch:{connection:{forward:{count:"first",cursor:"cursor"},backward:null,path:e},fragmentPathInResult:["node"],operation:d,identifierInfo:{identifierField:"id",identifierQueryVariableName:"id"}}},name:"DeploymentsTablePagination",selections:[{alias:"deployments",args:[{kind:"Variable",name:"environments",variableName:"env"},{kind:"Variable",name:"filterBy",variableName:"filterBy"},{kind:"Literal",name:"orderBy",value:{direction:"DESC",field:"CREATED_AT"}}],concreteType:"DeploymentConnection",kind:"LinkedField",name:"__Repository_deployments_connection",plural:!1,selections:[{alias:null,args:null,concreteType:"DeploymentEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"Deployment",kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"databaseId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"commitOid",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"createdAt",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"environment",storageKey:null},{alias:null,args:null,concreteType:"DeploymentStatus",kind:"LinkedField",name:"latestStatus",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"logUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"environmentUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"state",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"refName",storageKey:null},{alias:null,args:null,concreteType:"Repository",kind:"LinkedField",name:"repository",plural:!1,selections:[n,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"owner",plural:!1,selections:[l],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"creator",plural:!1,selections:[l,{alias:null,args:null,kind:"ScalarField",name:"avatarUrl",storageKey:null},a,{kind:"InlineFragment",selections:[t],type:"Bot",abstractKey:null}],storageKey:null},{alias:null,args:null,concreteType:"CheckRun",kind:"LinkedField",name:"checkRun",plural:!1,selections:[{alias:null,args:null,concreteType:"CheckSuite",kind:"LinkedField",name:"checkSuite",plural:!1,selections:[{alias:null,args:null,concreteType:"WorkflowRun",kind:"LinkedField",name:"workflowRun",plural:!1,selections:[a,{alias:null,args:null,kind:"ScalarField",name:"runNumber",storageKey:null},{alias:null,args:null,concreteType:"Workflow",kind:"LinkedField",name:"workflow",plural:!1,selections:[n],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Commit",kind:"LinkedField",name:"commit",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"messageHeadlineHTML",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{kind:"ClientExtension",selections:[{alias:null,args:null,kind:"ScalarField",name:"__id",storageKey:null}]}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"startCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasPreviousPage",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"totalCount",storageKey:null}],storageKey:null},t],type:"Repository",abstractKey:null}}();u.hash="2d4ceb5140bd2711ed08961ce64e0d69";var c=l(97174),m=l(63350),p=l(64583),g=l(96540),y=l(79961);let f=function(){var e=[{defaultValue:null,kind:"LocalArgument",name:"deploymentNodeId"}],n=[{kind:"Variable",name:"id",variableName:"deploymentNodeId"}],l={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},a={alias:null,args:null,kind:"ScalarField",name:"prefix",storageKey:null},t=[{kind:"Literal",name:"last",value:1}],i={alias:null,args:null,kind:"ScalarField",name:"number",storageKey:null},r={alias:null,args:null,kind:"ScalarField",name:"permalink",storageKey:null},s={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"DeploymentListItemQuery",selections:[{alias:null,args:n,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"Ref",kind:"LinkedField",name:"ref",plural:!1,selections:[l,a],storageKey:null},{alias:null,args:null,concreteType:"Commit",kind:"LinkedField",name:"commit",plural:!1,selections:[{alias:null,args:t,concreteType:"PullRequestConnection",kind:"LinkedField",name:"associatedPullRequests",plural:!1,selections:[{alias:null,args:null,concreteType:"PullRequest",kind:"LinkedField",name:"nodes",plural:!0,selections:[i,r],storageKey:null}],storageKey:"associatedPullRequests(last:1)"}],storageKey:null}],type:"Deployment",abstractKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"DeploymentListItemQuery",selections:[{alias:null,args:n,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"Ref",kind:"LinkedField",name:"ref",plural:!1,selections:[l,a,s],storageKey:null},{alias:null,args:null,concreteType:"Commit",kind:"LinkedField",name:"commit",plural:!1,selections:[{alias:null,args:t,concreteType:"PullRequestConnection",kind:"LinkedField",name:"associatedPullRequests",plural:!1,selections:[{alias:null,args:null,concreteType:"PullRequest",kind:"LinkedField",name:"nodes",plural:!0,selections:[i,r,s],storageKey:null}],storageKey:"associatedPullRequests(last:1)"},s],storageKey:null}],type:"Deployment",abstractKey:null},s],storageKey:null}]},params:{id:"d45bd737b9def0ac5e4349cece64bf93",metadata:{},name:"DeploymentListItemQuery",operationKind:"query",text:null}}}();f.hash="854fd1745fc47b7df585d3fd58eb68cc";var k=l(26607),h=l(38621);let _={Complete:"Status: Deployed (completed).",Failure:"Status: Failed to deploy (completed).",Idle:"Status: Ready to deploy (idle)."},x={Complete:"Deployed to",Failure:"Failed to deploy to",Idle:"Ready to deploy to"},b={active:{color:"success.fg",icon:h.CheckCircleFillIcon,label:"Active",description:_.Complete,message:x.Complete},success:{color:"success.fg",icon:h.CheckCircleFillIcon,label:"Active",description:_.Complete,message:x.Complete},inactive:{color:"fg.subtle",icon:h.CheckCircleIcon,label:"Inactive",description:_.Complete,message:x.Complete},error:{color:"danger.fg",icon:h.XCircleFillIcon,label:"Error",description:_.Failure,message:x.Failure},failure:{color:"danger.fg",icon:h.XCircleFillIcon,label:"Failure",description:_.Failure,message:x.Failure},waiting:{color:"attention.fg",icon:h.ClockIcon,label:"Waiting",description:_.Idle,message:x.Idle},abandoned:{color:"fg.subtle",icon:h.SkipIcon,label:"Abandoned",description:_.Failure,message:x.Failure},destroyed:{color:"fg.subtle",icon:h.SkipIcon,label:"Destroyed",description:_.Complete,message:x.Complete},queued:{color:"attention.fg",icon:h.DotFillIcon,label:"Queued",description:_.Idle,message:x.Idle},pending:{color:"attention.fg",icon:h.DotFillIcon,label:"Pending",description:_.Idle,message:x.Idle},inProgress:{color:"attention.fg",icon:h.IssueOpenedIcon,label:"In Progress"}};var F=l(25407);function L(){return(0,t.jsx)(s.az,{sx:{height:"16px",width:"16px",minWidth:"16px",mt:"14px"},children:(0,t.jsxs)("svg",{fill:"none",viewBox:"0 0 16 16",className:"anim-rotate","aria-hidden":"true",role:"img","aria-label":"Loading",children:[(0,t.jsx)("path",{opacity:".5",d:"M8 15A7 7 0 108 1a7 7 0 000 14v0z",stroke:"#dbab0a",strokeWidth:"2"}),(0,t.jsx)("path",{d:"M15 8a7 7 0 01-7 7",stroke:"#dbab0a",strokeWidth:"2"}),(0,t.jsx)("path",{d:"M8 12a4 4 0 100-8 4 4 0 000 8z",fill:"#dbab0a"})]})})}var S=l(77430);let K=({creatorPath:e,creatorName:n,creatorAvatar:l,workflowRunNumber:a,workflowName:i})=>(0,t.jsxs)(s.az,{as:"span",sx:{display:"inline"},children:[(0,t.jsxs)(s.N_,{href:e,muted:!0,"data-hovercard-type":"user","data-hovercard-url":(0,F.dCN)({owner:n}),sx:{verticalAlign:"middle"},target:"_blank",children:[(0,t.jsx)(S.r,{src:l,size:16,sx:{mb:1,mr:1}}),n]}),a&&i?(0,t.jsx)(s.EY,{as:"span",sx:{ml:1},children:`via ${i} #${a}`}):null]});try{K.displayName||(K.displayName="Trigger")}catch{}var w=l(98994),N=l(51880),j=l(65964),C=l(43617),E=l(95378),T=l(2970),I=l(5524),R=l(9214);let P=({logURL:e,workflowFilePath:n})=>(0,t.jsx)(R.L,{staticMenuActions:[{key:"view-logs",render:()=>e?(0,t.jsx)(I.l.LinkItem,{href:e,children:"View logs"}):null},{key:"view-workflow",render:()=>n?(0,t.jsx)(I.l.LinkItem,{href:n,children:"View workflow run"}):null}]});try{P.displayName||(P.displayName="DeploymentListItemSecondaryActions")}catch{}var A=l(62935),D=l(10436),V=l(29731),M=l(72579),z=l(69497),U=l(57352);let q={BranchName:"GitRef-module__BranchName--yAd2p"},H=({owner:e,repo:n,gitRef:l,refExists:a,pullRequestID:i,pullRequestPath:r,prefix:o})=>{let d;if(l)if(a){let a="refs/heads/"===o?(0,F.WJ9)({owner:e,repo:n,branch:l}):(0,F.cpj)({owner:e,repo:n,tag:l}),i="refs/heads/"===o?`${l} branch`:`${l} tag`;d=(0,t.jsx)(M.A,{href:a,"aria-label":i,...(0,V.G)("deployments-list-branch-name"),children:(0,t.jsx)(z.A,{title:l,children:l})})}else d=(0,t.jsx)(M.A,{as:"code",className:q.BranchName,...(0,V.G)("deployments-list-branch-name"),children:(0,t.jsx)(z.A,{title:l,children:l})});return(0,t.jsxs)(s.az,{as:"span",sx:{display:"flex",alignItems:"right"},children:[d,(0,t.jsx)("span",{children:i&&r?(0,t.jsx)(U.A,{href:r,"data-hovercard-url":`${r}/hovercard`,children:(0,t.jsxs)(s.EY,{as:"span",sx:{ml:1,fontSize:0},children:["(#",i,")"]})}):null})]})};try{H.displayName||(H.displayName="GitRef")}catch{}var $=l(4929);let O={ListItemMetadata_0:"DeploymentListItemMetadata-module__ListItemMetadata_0--HOzqo",ListItemMetadata_1:"DeploymentListItemMetadata-module__ListItemMetadata_1--qNJf3",ListItemMetadata_2:"DeploymentListItemMetadata-module__ListItemMetadata_2--Xmvdb"},B=({owner:e,gitRef:n,refExists:l,repo:a,sha:i,pullRequestID:r,pullRequestPath:s,prefix:o,createdAt:d,environmentURL:u,environment:c})=>(0,t.jsxs)(t.Fragment,{children:[n&&(0,t.jsx)($.V,{variant:"primary",className:O.ListItemMetadata_0,children:(0,t.jsx)(H,{owner:e,repo:a,gitRef:n,refExists:l,sha:i,pullRequestID:r,pullRequestPath:s,prefix:o})}),(0,t.jsx)($.V,{alignment:"right",className:O.ListItemMetadata_1,children:(0,t.jsx)(A.A,{datetime:d,format:"relative",prefix:""})}),(0,t.jsx)($.V,{alignment:"right","aria-label":u&&`View deployment to ${c}`,className:O.ListItemMetadata_2,children:u&&(0,t.jsx)("a",{href:u,"aria-label":`View deployment to ${c}`,...(0,V.G)("deployments-list-environment-url"),children:(0,t.jsx)(D.m4,{icon:h.LinkExternalIcon,sx:{color:"fg.subtle"}})})})]});try{B.displayName||(B.displayName="DeploymentListItemMetadata")}catch{}var G=l(65848);let W={ListItemTitle_0:"DeploymentListItem-module__ListItemTitle_0--MlAPZ",ListItemTitle_1:"DeploymentListItem-module__ListItemTitle_1--NDIqV"},Q=(e,n)=>{if(e||n)return(0,t.jsx)(P,{logURL:e,workflowFilePath:n})},X=({id:e,node:n,latestId:l,name:a,owner:i,repo:r,gitRef:d,sha:u,environmentURL:c,logURL:m,workflowFilePath:p,state:g,environment:y,creatorName:h,workflowRunNumber:_,workflowName:x,creatorPath:S,createdAt:I,creatorAvatar:R})=>{let P=(0,o.useLazyLoadQuery)(f,{deploymentNodeId:n}),A=P.node?.commit?.associatedPullRequests?.nodes?.at(0),D=(0,t.jsx)("a",{href:(0,F.$Qz)({owner:i,repo:r,commitish:u}),children:" "}),V=(0,G.F0)(D).replace(/ <\/a>$/,`${a??""}`);return(0,t.jsxs)(T.c,{title:(0,t.jsx)(E.kx,{html:V,headingClassName:W.ListItemTitle_0,containerClassName:W.ListItemTitle_1,children:e===l&&(0,t.jsx)(k.A,{variant:"secondary",children:"Active"})}),metadata:(0,t.jsx)(B,{pullRequestID:A?.number,pullRequestPath:A?.permalink,gitRef:d,refExists:P.node?.ref!=null,environment:y??"",environmentURL:c,prefix:P.node?.ref?.prefix??"",createdAt:I,owner:i,repo:r,sha:u}),secondaryActions:Q(m,p),children:[(0,t.jsx)(N.B,{children:void 0===g?(0,t.jsx)(j.e,{"aria-label":b.queued.label,icon:b.queued.icon,color:b.queued.color,description:b.queued.description}):"in_progress"===g?L():(0,t.jsx)(j.e,{"aria-label":b[g].label,icon:b[g].icon,color:b[g].color,description:b[g].description})}),(0,t.jsx)(C.Q,{children:(0,t.jsx)(w.U,{children:(0,t.jsxs)(s.az,{sx:{display:"flex",flexWrap:"wrap"},children:[(0,t.jsx)(s.EY,{"flex-wrap":"nowrap",sx:{mr:1},children:"in_progress"===g?"Deploying to":b[g]?.message||"Queued to deploy to"}),(0,t.jsx)(s.EY,{className:"text-bold",sx:{mr:1,flexWrap:"nowrap"},children:y}),(0,t.jsx)(s.EY,{sx:{mr:1,flexWrap:"nowrap"},children:"by"}),(0,t.jsx)(s.az,{sx:{flexWrap:"nowrap"},children:(0,t.jsx)(K,{creatorName:h,workflowRunNumber:_,workflowName:x,creatorPath:S,creatorAvatar:R})})]})})})]})};try{Q.displayName||(Q.displayName="KebabActionMenu")}catch{}try{X.displayName||(X.displayName="DeploymentListItem")}catch{}try{(a=DeploymentCommit).displayName||(a.displayName="DeploymentCommit")}catch{}var Y=l(69726);let J={ListItemTitle_0:"DeploymentListItemFallback-module__ListItemTitle_0--G_04p",ListItemTitle_1:"DeploymentListItemFallback-module__ListItemTitle_1--FVlM0",ListItemMetadata_0:"DeploymentListItemFallback-module__ListItemMetadata_0--gFDVc",ListItemMetadata_1:"DeploymentListItemFallback-module__ListItemMetadata_1--qpaTk",ListItemMetadata_2:"DeploymentListItemFallback-module__ListItemMetadata_2--fHGBH"},Z=(e,n)=>{if(e||n)return(0,t.jsx)(P,{logURL:e,workflowFilePath:n})},ee=({id:e,latestId:n,name:l,owner:a,repo:i,sha:r,state:o,environment:d,environmentURL:u,creatorName:c,createdAt:m,workflowRunNumber:p,workflowName:g,workflowFilePath:y,logURL:f,creatorPath:_,creatorAvatar:x})=>(0,t.jsxs)(T.c,{title:(0,t.jsx)(E.ao,{value:l??"",href:(0,F.$Qz)({owner:a,repo:i,commitish:r}),headingClassName:J.ListItemTitle_0,containerClassName:J.ListItemTitle_1,children:e===n&&(0,t.jsx)(k.A,{variant:"secondary",children:"Active"})}),metadata:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)($.V,{variant:"primary",className:J.ListItemMetadata_0,children:(0,t.jsx)(s.az,{as:"span",sx:{display:"flex",alignItems:"right"},children:(0,t.jsx)(Y.A,{size:"small"})})}),(0,t.jsx)($.V,{alignment:"right",className:J.ListItemMetadata_1,children:(0,t.jsx)(A.A,{datetime:m,format:"relative",prefix:""})}),(0,t.jsx)($.V,{alignment:"right","aria-label":u&&"Environment URL",className:J.ListItemMetadata_2,children:u&&(0,t.jsx)("a",{href:u,children:(0,t.jsx)(D.m4,{icon:h.LinkExternalIcon,sx:{color:"fg.subtle"}})})})]}),secondaryActions:Z(f,y),children:[(0,t.jsx)(N.B,{children:void 0===o?(0,t.jsx)(j.e,{"aria-label":b.queued.label,icon:b.queued.icon,color:b.queued.color,description:b.queued.description}):"in_progress"===o?L():(0,t.jsx)(j.e,{"aria-label":b[o].label,icon:b[o].icon,color:b[o].color,description:b[o].description})}),(0,t.jsx)(C.Q,{children:(0,t.jsx)(w.U,{children:(0,t.jsxs)(s.az,{sx:{display:"flex",flexWrap:"wrap"},children:[(0,t.jsx)(s.EY,{"flex-wrap":"nowrap",sx:{mr:1},children:"in_progress"===o?"Deploying to":b[o]?.message||"Queued to deploy to"}),(0,t.jsx)(s.EY,{className:"text-bold",sx:{mr:1,flexWrap:"nowrap"},children:d}),(0,t.jsx)(s.EY,{sx:{mr:1,flexWrap:"nowrap"},children:"by"}),(0,t.jsx)(s.az,{sx:{flexWrap:"nowrap"},children:(0,t.jsx)(K,{creatorName:c,workflowRunNumber:p,workflowName:g,creatorPath:_,creatorAvatar:x})})]})})})]});try{Z.displayName||(Z.displayName="KebabActionMenu")}catch{}try{ee.displayName||(ee.displayName="DeploymentListItemFallback")}catch{}var en=l(44686),el=l(79634),ea=l(92415),et=l(91385),ei=l(48738),er=l(55461),es=l(15774);let eo={displayName:"Environment",key:"environment",priority:3,icon:h.ServerIcon,description:"Filter by deployment environment"};let EnvironmentFilterProvider=class EnvironmentFilterProvider extends ei.kr{async getSuggestions(e,n,l,a){return this.processSuggestions(e,n,this.processSuggestion.bind(this),a)}rankSuggestion(e,n){let l=(0,er.M5)(n.value),a=eo.priority;return e&&l&&(a-=(0,et.fN)(e,l)),{...n,priority:a}}processSuggestion(e,n){let l=e.name;return this.rankSuggestion(n,{type:ea.ak.Value,displayName:l,ariaLabel:l,value:l})}getValueRowProps(e){return{text:e.displayName??(0,er.I8)(e.value)??"",leadingVisual:(0,es.d)({providerIcon:this.icon,value:e})}}validateValue(e,n,l){let a=(0,er.M5)(n.value);return!!l&&!!a&&{value:a,displayName:l.name}}constructor(e,n){let l=`/${e}/deployments/filter-suggestions/environments`;super(eo,n),this.suggestionEndpoint=l,this.validationEndpoint=l,this.type=ea.CH.Select}};let ed={displayName:"Ref",key:"ref",priority:4,icon:h.GitBranchIcon,description:"Filter by deployment ref"};let RefFilterProvider=class RefFilterProvider extends ei.kr{async getSuggestions(e,n,l,a){return this.processSuggestions(e,n,this.processSuggestion.bind(this),a)}rankSuggestion(e,n){let l=(0,er.M5)(n.value),a=ed.priority;return e&&l&&(a-=(0,et.fN)(e,l)),{...n,priority:a}}processSuggestion(e,n){let l=e.ref;return this.rankSuggestion(n,{type:ea.ak.Value,displayName:l,ariaLabel:l,value:l})}getValueRowProps(e){return{text:e.displayName??(0,er.I8)(e.value)??"",leadingVisual:(0,es.d)({providerIcon:this.icon,value:e})}}validateValue(e,n,l){let a=(0,er.M5)(n.value);return!!l&&!!a&&{value:a,displayName:l.ref}}constructor(e,n){let l=`/${e}/deployments/filter-suggestions/refs`;super(ed,n),this.suggestionEndpoint=l,this.validationEndpoint=l,this.type=ea.CH.Select}};let eu={displayName:"Creator",key:"creator",priority:2,icon:h.PersonIcon,description:"Filter by deployment creator"};let CreatorFilterProvider=class CreatorFilterProvider extends ei.Qh{constructor(e,n){let l=`/${e.repositoryScope}/deployments/filter-suggestions/users`;super(eu,e,n),this.type=ea.CH.Select,this.suggestionEndpoint=l,this.validationEndpoint=l}};let StateFilterProvider=class StateFilterProvider extends ei.W${constructor(e){let n={displayName:"State",key:"state",priority:1,icon:h.CheckCircleIcon,description:"Filter by deployment state"};super(n,[{value:"success",displayName:"success",priority:1,icon:b.success.icon,iconColor:b.success.color},{value:"failure",displayName:"failure",priority:2,icon:b.failure.icon,iconColor:b.failure.color},{value:"error",displayName:"error",priority:3,icon:b.error.icon,iconColor:b.error.color},{value:"inactive",displayName:"inactive",priority:4,icon:b.inactive.icon,iconColor:b.inactive.color},{value:"pending",displayName:"pending",priority:4,icon:b.pending.icon,iconColor:b.pending.color},{value:"queued",displayName:"queued",priority:6,icon:b.queued.icon,iconColor:b.queued.color},{value:"in_progress",displayName:"in progress",priority:7,icon:b.inProgress.icon,iconColor:b.inProgress.color},{value:"waiting",displayName:"waiting",priority:8,icon:b.waiting.icon,iconColor:b.waiting.color}],{...e,filterTypes:{...e?.filterTypes,multiValue:!0}})}};let ec=new Set([ea.FT.ExplicitSubmit,ea.FT.DialogSubmit]),em=({repoScope:e,refetch:n,setCurrentPage:l})=>{let[a,i]=(0,g.useState)([]),r=(0,g.useCallback)((e,n)=>{let l=[];for(let e of n.blocks)if(e.type===ea._B.Text){let n=`Text will be ignored since log searching is not yet available:
${e.raw}
`;l.push(n)}l.length>0||n.errors.length>0?i([...n.errors,...l]):i([])},[]),s=(0,g.useContext)(y.n),[,o]=(0,g.useTransition)(),{currentUser:d}=(0,el.X)(),u=(0,g.useMemo)(()=>{let n=[new RefFilterProvider(e,{filterTypes:{inclusive:!0,exclusive:!1,multiKey:!1,multiValue:!0,valueless:!1}}),new CreatorFilterProvider({showAtMe:!0,currentUserLogin:d.login,currentUserAvatarUrl:d.avatarUrl,repositoryScope:e},{filterTypes:{inclusive:!0,exclusive:!1,multiKey:!1,multiValue:!0,valueless:!1}}),new StateFilterProvider({filterTypes:{inclusive:!0,exclusive:!1,multiKey:!1,multiValue:!0,valueless:!1}})];return s||n.push(new EnvironmentFilterProvider(e,{filterTypes:{inclusive:!0,exclusive:!1,multiKey:!1,multiValue:!0,valueless:!1}})),n},[e,s,d]),c=(0,g.useCallback)((e,n,l,a)=>{let t=a;n instanceof StateFilterProvider&&(t=t.map(e=>e.toUpperCase())),n instanceof CreatorFilterProvider&&(t=t.map(e=>"@me"===e?d.login:e)),n?.options?.filterTypes?.multiValue===!0?l=`${l}s`:t=a[0],e[l]=t},[d]),m=(0,g.useCallback)((e,a)=>{o(()=>{let t={};if(ec.has(a)&&!(e.errors.length>0)){for(let n of e.blocks){if(n.type!==ea._B.Filter)continue;if(n?.valid!==!0)return;let e=n.provider;c(t,e,n.key?.value,(n.value?.values||[]).map(e=>(0,er.I8)(e.value)??"").filter(Boolean))}s&&(t.environments=[s]),n({filterBy:t}),l(1)}})},[s,n,c,l]);return(0,t.jsxs)("div",{children:[(0,t.jsx)(ea.dJ,{id:"deployments-filter","data-testid":"deployments-filter-input",context:{repo:e},filterButtonVariant:"normal",variant:"full",label:"Filter deployments",placeholder:"Filter deployments",providers:u,initialFilterValue:"",onSubmit:m,onValidation:r,showValidationMessage:!1}),a.length>0&&(0,t.jsx)(ea.Xl,{"data-testid":"filter-warning-deployments",messages:a,id:"deployments-validation-message"})]})};try{em.displayName||(em.displayName="FilterInput")}catch{}var ep=l(73017);let eg={RelativeTime:"DeploymentCardsSection-module__RelativeTime--NxwT6"};function ey(e){if(!e||!(e in b))return null;{let{color:n,icon:l}=b[e];return(0,t.jsx)(D.m4,{"aria-label":`Deployment ${e}`,icon:l,sx:{color:n}})}}function ef(e){let n=(0,g.useContext)(y.n),l="pinned",a=n?`${n} deployments`:"All deployments";return(0,t.jsxs)("div",{children:[(0,t.jsxs)(s.az,{sx:{display:"flex",flexDirection:"column"},children:[(0,t.jsx)(s.DZ,{as:"h2",sx:{fontWeight:"normal",fontSize:22,mb:3},children:a}),(0,t.jsx)(s.EY,{"data-testid":`${l}-header`,sx:{color:"fg.subtle",pr:1},children:n?"Latest deployments":`Latest deployments from ${l} environments`})]}),(0,t.jsx)(s.az,{sx:{display:"grid",gridTemplateColumns:[null,"1fr 1fr"],gap:2,mt:2,mb:4},children:e.slice(0,10).map((e,n)=>(0,t.jsxs)(s.az,{"data-testid":"deployment-card",sx:{borderWidth:1,borderStyle:"solid",borderRadius:2,borderColor:"border.default",p:2,display:"flex",justifyContent:"space-between"},children:[(0,t.jsxs)(s.az,{sx:{p:2},children:[(0,t.jsxs)("div",{children:[ey(e.state),(0,t.jsx)(s.EY,{sx:{fontWeight:"bold",pl:1},children:e.environment})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(s.EY,{sx:{fontSize:0,color:"fg.muted",pl:1,pr:1},children:"Last"}),e.logURL?(0,t.jsx)(s.N_,{href:e.logURL,sx:{fontSize:0},muted:!0,underline:!0,children:"deployed"}):(0,t.jsx)(s.EY,{sx:{fontSize:0,color:"fg.muted"},children:"deployed"}),(0,t.jsx)(A.A,{datetime:e.createdAt,format:"relative",className:eg.RelativeTime})]}),e.environmentURL?(0,t.jsx)("div",{children:(0,t.jsx)(s.N_,{href:e.environmentURL,sx:{pl:1},children:e.environmentURL})}):(0,t.jsx)("div",{children:(0,t.jsx)(s.EY,{sx:{pl:1,fontSize:0},children:(0,t.jsx)(ep.JR,{as:"span",html:e.name})})})]}),(0,t.jsx)(s.az,{as:"span",sx:{p:2},children:e.environmentURL&&(0,t.jsx)("a",{href:e.environmentURL,"aria-label":`View deployment to ${e.environment}`,children:(0,t.jsx)(D.m4,{icon:h.LinkExternalIcon,sx:{color:"fg.subtle"}})})})]},n))})]})}try{ey.displayName||(ey.displayName="StatusBadge")}catch{}try{ef.displayName||(ef.displayName="DeploymentCardsSection")}catch{}let ek=["active","success","failure","error"];function eh({latest:e}){let n=(0,g.useContext)(y.n),l=e.filter(e=>ek.includes(e.state?.toLowerCase())).sort((e,n)=>n.createdAte.createdAt)).filter((e,n,l)=>l.findIndex(n=>n.environment===e.environment&&n.workflowFilePath===e.workflowFilePath)===n),a=null===n?"All deployments":`${n} deployments`;return 0===l.length?(0,t.jsx)(s.az,{sx:{display:"flex",flexDirection:"column",paddingY:2},children:(0,t.jsx)(s.DZ,{as:"h2",sx:{fontWeight:"normal",fontSize:22},children:a})}):ef(l)}try{eh.displayName||(eh.displayName="Latest")}catch{}function ev(){return(0,t.jsx)(s.az,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"60vh",borderWidth:1,borderRadius:2,borderStyle:"solid",borderColor:"border.default",mt:4},children:(0,t.jsxs)(s.az,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},children:[(0,t.jsx)(s.EY,{as:"h3",sx:{fontSize:4,mt:2,fontWeight:"bold",textAlign:"center"},children:"Your search did not match any deployments"}),(0,t.jsx)(s.EY,{sx:{fontSize:2,fontWeight:"light",mt:2,textAlign:"center",color:"fg.muted"},children:"Try a different search query"})]})})}try{ev.displayName||(ev.displayName="MissingDeployments")}catch{}function e_({repositoryRef:e,repoScope:n}){let{data:l,loadNext:a,isLoadingNext:i,hasNext:r,refetch:d}=function({key:e}){let{data:n,loadNext:l,hasNext:a,isLoadingNext:t,refetch:i}=(0,o.usePaginationFragment)(u,e);return{data:n,loadNext:l,hasNext:a,isLoadingNext:t,refetch:i}}({key:e}),[f,k]=(0,g.useState)(1),h=(0,g.useContext)(y.n);(0,g.useMemo)(()=>{d({filterBy:null==h?null:{environments:[h]}}),k(1)},[d,h]);let _=(0,g.useMemo)(()=>l.deployments?.edges?.filter(e=>e&&e.node&&"number"==typeof e.node.databaseId)?.map(e=>{let n=e.node,l=n.commit?.messageHeadlineHTML,a=n.latestStatus?.environmentUrl,t=n.latestStatus?.logUrl,i=n.environment;return{name:l||"No commit message",id:n.databaseId,node:n.__id,gitRef:n.refName||void 0,environment:"string"==typeof i?i:void 0,environmentURL:"string"==typeof a?a:void 0,creatorName:n.creator.login,creatorAvatar:n.creator.avatarUrl,creatorPath:n.creator.url,state:n.latestStatus?.state.toLowerCase(),logURL:"string"==typeof t?t:void 0,owner:n.repository.owner.login,repo:n.repository.name,createdAt:n.createdAt,workflowFilePath:n.checkRun?.checkSuite?.workflowRun?.url,workflowRunNumber:n.checkRun?.checkSuite?.workflowRun?.runNumber,workflowName:n.checkRun?.checkSuite?.workflowRun?.workflow?.name,sha:n.commitOid,trigger:"via"}}).filter(e=>!!e),[l]),x=l.deployments.totalCount,[b,F]=(0,g.useState)(_),L=-1;0!==_.length&&(L=_.reduce((e,n)=>n.createdAt>e.createdAt?n:e,_[0]).id),(0,g.useEffect)(()=>{let e=(f-1)*25;F(_?.slice(e,e+25))},[f,_]);let S=`${x.toLocaleString()} deployments`;return(0,t.jsxs)("div",{children:[(0,t.jsx)(g.Suspense,{fallback:(0,t.jsx)(en.y,{}),children:h&&(0,t.jsx)(eh,{latest:_})}),(0,t.jsx)(s.az,{sx:{mb:3},children:(0,t.jsx)(em,{setCurrentPage:k,repoScope:n,refetch:d})}),(0,t.jsx)(g.Suspense,{fallback:(0,t.jsx)(en.y,{}),children:0!==l.deployments.totalCount?(0,t.jsxs)("div",{"data-testid":"deployments-table",children:[(0,t.jsx)(s.az,{sx:{borderWidth:1,borderStyle:"solid",borderRadius:2,borderColor:"border.default"},children:(0,t.jsx)(c.u,{metadata:(0,t.jsx)(m.X,{title:(0,t.jsx)(s.EY,{sx:{fontWeight:600,fontSize:1},children:S})}),title:S,titleHeaderTag:"h3",children:i?(0,t.jsx)(en.y,{}):b.map((e,n)=>(0,t.jsx)(g.Suspense,{fallback:(0,t.jsx)(ee,{latestId:L,...e}),children:(0,t.jsx)(X,{latestId:L,...e})},n))})}),(0,t.jsx)("div",{children:(0,t.jsx)(p.A,{pageCount:Math.ceil(x/25),currentPage:f,onPageChange:(e,n)=>{e.preventDefault(),r&&!i&&a(25),k(n)},showPages:!1})})]}):(0,t.jsx)(ev,{})})]})}try{e_.displayName||(e_.displayName="DeploymentsTable")}catch{}let ex=function(){var e=[{defaultValue:null,kind:"LocalArgument",name:"cursor"},{defaultValue:10,kind:"LocalArgument",name:"first"},{defaultValue:null,kind:"LocalArgument",name:"id"}],n=[{kind:"Variable",name:"id",variableName:"id"}],l={kind:"Variable",name:"first",variableName:"first"},a={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},t={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},i=[{kind:"Variable",name:"after",variableName:"cursor"},l],r={alias:null,args:null,kind:"ScalarField",name:"databaseId",storageKey:null},s={kind:"ClientExtension",selections:[{alias:null,args:null,kind:"ScalarField",name:"__id",storageKey:null}]};return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"PinnedEnvironmentListRefetch",selections:[{alias:null,args:n,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{args:[{kind:"Variable",name:"cursor",variableName:"cursor"},l],kind:"FragmentSpread",name:"ActivePinnedEnvironments"}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"PinnedEnvironmentListRefetch",selections:[{alias:null,args:n,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[a,t,{kind:"InlineFragment",selections:[{alias:null,args:i,concreteType:"PinnedEnvironmentConnection",kind:"LinkedField",name:"pinnedEnvironments",plural:!1,selections:[{alias:null,args:null,concreteType:"PinnedEnvironmentEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"PinnedEnvironment",kind:"LinkedField",name:"node",plural:!1,selections:[r,{alias:null,args:null,kind:"ScalarField",name:"position",storageKey:null},{alias:null,args:null,concreteType:"Environment",kind:"LinkedField",name:"environment",plural:!1,selections:[t,{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isPinned",storageKey:null},{alias:null,args:null,concreteType:"Deployment",kind:"LinkedField",name:"latestCompletedDeployment",plural:!1,selections:[r,{alias:null,args:null,kind:"ScalarField",name:"createdAt",storageKey:null},{alias:null,args:null,concreteType:"DeploymentStatus",kind:"LinkedField",name:"latestStatus",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"logUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"environmentUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"state",storageKey:null},t],storageKey:null},{alias:null,args:null,concreteType:"Commit",kind:"LinkedField",name:"commit",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"messageHeadlineHTML",storageKey:null},t],storageKey:null},t],storageKey:null}],storageKey:null},t,s,a],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null}],storageKey:null},s],storageKey:null},{alias:null,args:i,filters:null,handle:"connection",key:"Repository_pinnedEnvironments",kind:"LinkedHandle",name:"pinnedEnvironments"}],type:"Repository",abstractKey:null}],storageKey:null}]},params:{id:"7082649b31a5af5356b6c3606fc1d6ea",metadata:{},name:"PinnedEnvironmentListRefetch",operationKind:"query",text:null}}}();ex.hash="4c81dc0010f58cbee6d0c5bf249ac721";let eb=function(){var e=["pinnedEnvironments"],n={alias:null,args:null,kind:"ScalarField",name:"databaseId",storageKey:null},l={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},a={kind:"ClientExtension",selections:[{alias:null,args:null,kind:"ScalarField",name:"__id",storageKey:null}]};return{argumentDefinitions:[{defaultValue:null,kind:"LocalArgument",name:"cursor"},{defaultValue:10,kind:"LocalArgument",name:"first"}],kind:"Fragment",metadata:{connection:[{count:"first",cursor:"cursor",direction:"forward",path:e}],refetch:{connection:{forward:{count:"first",cursor:"cursor"},backward:null,path:e},fragmentPathInResult:["node"],operation:ex,identifierInfo:{identifierField:"id",identifierQueryVariableName:"id"}}},name:"ActivePinnedEnvironments",selections:[{alias:"pinnedEnvironments",args:null,concreteType:"PinnedEnvironmentConnection",kind:"LinkedField",name:"__Repository_pinnedEnvironments_connection",plural:!1,selections:[{alias:null,args:null,concreteType:"PinnedEnvironmentEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"PinnedEnvironment",kind:"LinkedField",name:"node",plural:!1,selections:[n,{alias:null,args:null,kind:"ScalarField",name:"position",storageKey:null},{alias:null,args:null,concreteType:"Environment",kind:"LinkedField",name:"environment",plural:!1,selections:[l,{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isPinned",storageKey:null},{alias:null,args:null,concreteType:"Deployment",kind:"LinkedField",name:"latestCompletedDeployment",plural:!1,selections:[n,{alias:null,args:null,kind:"ScalarField",name:"createdAt",storageKey:null},{alias:null,args:null,concreteType:"DeploymentStatus",kind:"LinkedField",name:"latestStatus",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"logUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"environmentUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"state",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Commit",kind:"LinkedField",name:"commit",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"messageHeadlineHTML",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},a,{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null}],storageKey:null},a],storageKey:null},l],type:"Repository",abstractKey:null}}();eb.hash="4c81dc0010f58cbee6d0c5bf249ac721";let eF=function(){var e={defaultValue:null,kind:"LocalArgument",name:"cursor"},n={defaultValue:2,kind:"LocalArgument",name:"first"},l={defaultValue:null,kind:"LocalArgument",name:"id"},a={defaultValue:["github-pages","production"],kind:"LocalArgument",name:"names"},t=[{kind:"Variable",name:"id",variableName:"id"}],i={kind:"Variable",name:"first",variableName:"first"},r={kind:"Variable",name:"names",variableName:"names"},s={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},o={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},d=[{kind:"Variable",name:"after",variableName:"cursor"},i,r],u={alias:null,args:null,kind:"ScalarField",name:"databaseId",storageKey:null};return{fragment:{argumentDefinitions:[e,n,l,a],kind:"Fragment",metadata:null,name:"StickyDeploymentListRefetch",selections:[{alias:null,args:t,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{args:[{kind:"Variable",name:"cursor",variableName:"cursor"},i,r],kind:"FragmentSpread",name:"ActiveStickyDeployments"}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[e,n,a,l],kind:"Operation",name:"StickyDeploymentListRefetch",selections:[{alias:null,args:t,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[s,o,{kind:"InlineFragment",selections:[{alias:"stickyEnvironments",args:d,concreteType:"EnvironmentConnection",kind:"LinkedField",name:"environments",plural:!1,selections:[{alias:null,args:null,concreteType:"EnvironmentEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"Environment",kind:"LinkedField",name:"node",plural:!1,selections:[u,o,{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,concreteType:"Deployment",kind:"LinkedField",name:"latestCompletedDeployment",plural:!1,selections:[u,{alias:null,args:null,kind:"ScalarField",name:"createdAt",storageKey:null},{alias:null,args:null,concreteType:"DeploymentStatus",kind:"LinkedField",name:"latestStatus",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"logUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"environmentUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"state",storageKey:null},o],storageKey:null},{alias:null,args:null,concreteType:"Commit",kind:"LinkedField",name:"commit",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"messageHeadlineHTML",storageKey:null},o],storageKey:null},o],storageKey:null},s],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null}],storageKey:null}],storageKey:null},{alias:"stickyEnvironments",args:d,filters:["names"],handle:"connection",key:"Repository_stickyEnvironments",kind:"LinkedHandle",name:"environments"}],type:"Repository",abstractKey:null}],storageKey:null}]},params:{id:"c980ae5b537e2ae1b73885780207e95b",metadata:{},name:"StickyDeploymentListRefetch",operationKind:"query",text:null}}}();eF.hash="a8286688a144f91bbe4790060053847d";let eL=function(){var e=["stickyEnvironments"],n={alias:null,args:null,kind:"ScalarField",name:"databaseId",storageKey:null},l={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{argumentDefinitions:[{defaultValue:null,kind:"LocalArgument",name:"cursor"},{defaultValue:2,kind:"LocalArgument",name:"first"},{defaultValue:["github-pages","production"],kind:"LocalArgument",name:"names"}],kind:"Fragment",metadata:{connection:[{count:"first",cursor:"cursor",direction:"forward",path:e}],refetch:{connection:{forward:{count:"first",cursor:"cursor"},backward:null,path:e},fragmentPathInResult:["node"],operation:eF,identifierInfo:{identifierField:"id",identifierQueryVariableName:"id"}}},name:"ActiveStickyDeployments",selections:[{alias:"stickyEnvironments",args:[{kind:"Variable",name:"names",variableName:"names"}],concreteType:"EnvironmentConnection",kind:"LinkedField",name:"__Repository_stickyEnvironments_connection",plural:!1,selections:[{alias:null,args:null,concreteType:"EnvironmentEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"Environment",kind:"LinkedField",name:"node",plural:!1,selections:[n,l,{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,concreteType:"Deployment",kind:"LinkedField",name:"latestCompletedDeployment",plural:!1,selections:[n,{alias:null,args:null,kind:"ScalarField",name:"createdAt",storageKey:null},{alias:null,args:null,concreteType:"DeploymentStatus",kind:"LinkedField",name:"latestStatus",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"logUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"environmentUrl",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"state",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Commit",kind:"LinkedField",name:"commit",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"messageHeadlineHTML",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null}],storageKey:null}],storageKey:null},l],type:"Repository",abstractKey:null}}();function eS(e){let n=e?.pinnedEnvironments?.edges;return n?.filter(e=>e&&e.node&&"number"==typeof e.node.databaseId)?.filter(e=>{let n=e?.node,l=n?.environment?.latestCompletedDeployment;return"number"==typeof l?.databaseId&&n?.environment?.isPinned===!0})?.map(e=>{let n=e?.node,l=n?.environment,a=l?.latestCompletedDeployment,t=a?.commit?.messageHeadlineHTML,i=a?.latestStatus?.environmentUrl,r=a?.latestStatus?.logUrl,s=a?.latestStatus?.state;return{pinnedPosition:n?.position,id:a?.databaseId,envId:l?.id,name:t||"No commit message",environment:l?l.name:"",environmentURL:"string"==typeof i?i:void 0,logURL:"string"==typeof r?r:void 0,createdAt:a?a.createdAt:"",state:"string"==typeof s?s.toLowerCase():void 0}}).filter(e=>!!e)}function eK(e){let n=e?.stickyEnvironments?.edges;return n?.filter(e=>e&&e.node&&"number"==typeof e.node.databaseId)?.filter(e=>{let n=e?.node,l=n?.latestCompletedDeployment;return"number"==typeof l?.databaseId}).map(e=>{let n=e?.node,l=n?.latestCompletedDeployment,a=l?.commit?.messageHeadlineHTML,t=l?.latestStatus?.environmentUrl,i=l?.latestStatus?.logUrl,r=l?.latestStatus?.state;return{pinnedPosition:-1,id:l?.databaseId,envId:n?.id,name:a||"No commit message",environment:n?n.name:"",environmentURL:"string"==typeof t?t:void 0,logURL:"string"==typeof i?i:void 0,createdAt:l?l.createdAt:"",state:"string"==typeof r?r.toLowerCase():void 0}}).filter(e=>!!e)}function ew({repositoryRef:e,setConnectionId:n,pinnedEnvConnectionId:l}){let{data:a}=(({key:e})=>{let[n,l]=(0,o.useRefetchableFragment)(eb,e);return{data:n,refetch:l}})({key:e}),{data:t}=(({key:e})=>{let[n,l]=(0,o.useRefetchableFragment)(eL,e);return{data:n,refetch:l}})({key:e});(0,g.useEffect)(()=>{!l&&a.pinnedEnvironments?.__id&&n(a.pinnedEnvironments?.__id)},[a,l,n]);let i=eS(a)||[],r=eK(t)||[],s=i&&0!==i.length?i:r;return s&&s?.length!==0?(s.sort((e,n)=>e.environment.localeCompare(n.environment)||0).sort((e,n)=>e.pinnedPosition-n.pinnedPosition),ef(s)):null}eL.hash="a8286688a144f91bbe4790060053847d";try{eS.displayName||(eS.displayName="DeploymentFromPinnedEnvironmentsQuery")}catch{}try{eK.displayName||(eK.displayName="DeploymentFromEnvironmentsQuery")}catch{}try{ew.displayName||(ew.displayName="ActiveDeployments")}catch{}let eN=function(){var e={defaultValue:null,kind:"LocalArgument",name:"cursor"},n={defaultValue:50,kind:"LocalArgument",name:"first"},l={defaultValue:null,kind:"LocalArgument",name:"id"},a={defaultValue:"NONE",kind:"LocalArgument",name:"pinnedEnvironmentFilter"},t=[{kind:"Variable",name:"id",variableName:"id"}],i={kind:"Variable",name:"first",variableName:"first"},r={kind:"Variable",name:"pinnedEnvironmentFilter",variableName:"pinnedEnvironmentFilter"},s={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},o={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},d=[{kind:"Variable",name:"after",variableName:"cursor"},i,r];return{fragment:{argumentDefinitions:[e,n,l,a],kind:"Fragment",metadata:null,name:"EnvironmentListRefetch",selections:[{alias:null,args:t,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{args:[{kind:"Variable",name:"cursor",variableName:"cursor"},i,r],kind:"FragmentSpread",name:"EnvironmentListListings"}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[e,n,a,l],kind:"Operation",name:"EnvironmentListRefetch",selections:[{alias:null,args:t,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[s,o,{kind:"InlineFragment",selections:[{alias:null,args:d,concreteType:"EnvironmentConnection",kind:"LinkedField",name:"environments",plural:!1,selections:[{alias:null,args:null,concreteType:"EnvironmentEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"Environment",kind:"LinkedField",name:"node",plural:!1,selections:[o,{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isPinned",storageKey:null},s],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:d,filters:["pinnedEnvironmentFilter"],handle:"connection",key:"Repository_environments",kind:"LinkedHandle",name:"environments"}],type:"Repository",abstractKey:null}],storageKey:null}]},params:{id:"93a08ae236a833b2622a36843027a752",metadata:{},name:"EnvironmentListRefetch",operationKind:"query",text:null}}}();eN.hash="93da16af8bba722c867e055e2a61ccdc";let ej=function(){var e=["environments"],n={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{argumentDefinitions:[{defaultValue:null,kind:"LocalArgument",name:"cursor"},{defaultValue:50,kind:"LocalArgument",name:"first"},{defaultValue:"NONE",kind:"LocalArgument",name:"pinnedEnvironmentFilter"}],kind:"Fragment",metadata:{connection:[{count:"first",cursor:"cursor",direction:"forward",path:e}],refetch:{connection:{forward:{count:"first",cursor:"cursor"},backward:null,path:e},fragmentPathInResult:["node"],operation:eN,identifierInfo:{identifierField:"id",identifierQueryVariableName:"id"}}},name:"EnvironmentListListings",selections:[{alias:"environments",args:[{kind:"Variable",name:"pinnedEnvironmentFilter",variableName:"pinnedEnvironmentFilter"}],concreteType:"EnvironmentConnection",kind:"LinkedField",name:"__Repository_environments_connection",plural:!1,selections:[{alias:null,args:null,concreteType:"EnvironmentEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"Environment",kind:"LinkedField",name:"node",plural:!1,selections:[n,{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isPinned",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null}],storageKey:null}],storageKey:null},n],type:"Repository",abstractKey:null}}();ej.hash="93da16af8bba722c867e055e2a61ccdc";let eC={argumentDefinitions:[{defaultValue:null,kind:"LocalArgument",name:"cursor"},{defaultValue:10,kind:"LocalArgument",name:"first"},{defaultValue:"ONLY",kind:"LocalArgument",name:"pinnedEnvironmentFilter"}],kind:"Fragment",metadata:{connection:[{count:"first",cursor:"cursor",direction:"forward",path:["listPinnedEnvironments"]}]},name:"EnvironmentListingsPinned",selections:[{alias:"listPinnedEnvironments",args:[{kind:"Variable",name:"pinnedEnvironmentFilter",variableName:"pinnedEnvironmentFilter"}],concreteType:"EnvironmentConnection",kind:"LinkedField",name:"__Repository_listPinnedEnvironments_connection",plural:!1,selections:[{alias:null,args:null,concreteType:"EnvironmentEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"Environment",kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isPinned",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PageInfo",kind:"LinkedField",name:"pageInfo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"endCursor",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hasNextPage",storageKey:null}],storageKey:null}],storageKey:null}],type:"Repository",abstractKey:null};eC.hash="fffc89b6860f8e3a39874bcd2e32310b";var eE=l(61864);let eT=function(){var e=[{defaultValue:null,kind:"LocalArgument",name:"input"}],n=[{kind:"Variable",name:"input",variableName:"input"}],l={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},a={alias:null,args:null,kind:"ScalarField",name:"isPinned",storageKey:null},t={alias:null,args:null,concreteType:"Environment",kind:"LinkedField",name:"environment",plural:!1,selections:[l,a],storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"databaseId",storageKey:null},r={alias:null,args:null,kind:"ScalarField",name:"position",storageKey:null},s={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},o={alias:null,args:null,kind:"ScalarField",name:"createdAt",storageKey:null},d={alias:null,args:null,kind:"ScalarField",name:"logUrl",storageKey:null},u={alias:null,args:null,kind:"ScalarField",name:"environmentUrl",storageKey:null},c={alias:null,args:null,kind:"ScalarField",name:"state",storageKey:null},m={alias:null,args:null,kind:"ScalarField",name:"messageHeadlineHTML",storageKey:null};return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"pinEnvironmentMutation",selections:[{alias:null,args:n,concreteType:"PinEnvironmentPayload",kind:"LinkedField",name:"pinEnvironment",plural:!1,selections:[t,{alias:null,args:null,concreteType:"PinnedEnvironment",kind:"LinkedField",name:"pinnedEnvironment",plural:!1,selections:[l,i,r,{alias:null,args:null,concreteType:"Environment",kind:"LinkedField",name:"environment",plural:!1,selections:[l,s,a,{alias:null,args:null,concreteType:"Deployment",kind:"LinkedField",name:"latestCompletedDeployment",plural:!1,selections:[i,o,{alias:null,args:null,concreteType:"DeploymentStatus",kind:"LinkedField",name:"latestStatus",plural:!1,selections:[d,u,c],storageKey:null},{alias:null,args:null,concreteType:"Commit",kind:"LinkedField",name:"commit",plural:!1,selections:[m],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"pinEnvironmentMutation",selections:[{alias:null,args:n,concreteType:"PinEnvironmentPayload",kind:"LinkedField",name:"pinEnvironment",plural:!1,selections:[t,{alias:null,args:null,concreteType:"PinnedEnvironment",kind:"LinkedField",name:"pinnedEnvironment",plural:!1,selections:[l,i,r,{alias:null,args:null,concreteType:"Environment",kind:"LinkedField",name:"environment",plural:!1,selections:[l,s,a,{alias:null,args:null,concreteType:"Deployment",kind:"LinkedField",name:"latestCompletedDeployment",plural:!1,selections:[i,o,{alias:null,args:null,concreteType:"DeploymentStatus",kind:"LinkedField",name:"latestStatus",plural:!1,selections:[d,u,c,l],storageKey:null},{alias:null,args:null,concreteType:"Commit",kind:"LinkedField",name:"commit",plural:!1,selections:[m,l],storageKey:null},l],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}]},params:{id:"3bdd2ccbc784aa64e09ebc6156c9fed7",metadata:{},name:"pinEnvironmentMutation",operationKind:"mutation",text:null}}}();eT.hash="ed1d7c6a9827c1e40e013a5e2488c016";let eI={environmentlist:"EnvironmentListItem-module__environmentlist--UeDAf",environment:"EnvironmentListItem-module__environment--YR87u",unpinned:"EnvironmentListItem-module__unpinned--qlVBH"};var eR=l(96459);let eP=({id:e,name:n,pinned:l,repoScope:a,pinnedEnvConnectionId:i})=>{let r=(0,o.useRelayEnvironment)(),d=(0,g.useContext)(y.n),{canManagePinning:u}=(0,el.X)(),c=(0,eR.Z)(),[m,p]=(0,g.useState)(!1),[f,k]=(0,g.useState)(l),_=n=>{n.preventDefault(),n.stopPropagation();let a=!l;!function({environment:e,envId:n,pinned:l,connectionID:a,onComplete:t,onError:i}){(0,o.commitMutation)(e,{mutation:eT,variables:{input:{environmentId:n,pinned:l}},onError:i,onCompleted:t,updater:e=>(function(e,n,l){let a=e.get(l);if(!a)return;let t=e.getRootField("pinEnvironment")?.getLinkedRecord("environment");if(!t)return;let i=a.getLinkedRecords("edges");if(i){let l=i.find(e=>{let n=e.getLinkedRecord("node"),l=n?.getLinkedRecord("environment");return l&&l.getDataID()===t.getDataID()});if(!l&&n){let n=e.getRootField("pinEnvironment")?.getLinkedRecord("pinnedEnvironment");if(!n)return;let l=o.ConnectionHandler.createEdge(e,a,n,"PinnedEnvironmentEdge");o.ConnectionHandler.insertEdgeAfter(a,l)}else if(l&&!n){let n=l.getLinkedRecord("node");if(!n)return;let t=n.getDataID();o.ConnectionHandler.deleteNode(a,t),e.delete(t)}}})(e,l,a)})}({environment:r,envId:e,pinned:a,connectionID:i||"",onComplete:()=>{k(a)}})},x=d===n||!d&&"0"===e;return(0,t.jsxs)(eE.c.Item,{onClick:()=>{"All deployments"===n&&"0"===e?c(`/${a}/deployments`):c(`/${a}/deployments/${encodeURIComponent(n)}`)},href:"All deployments"===n&&"0"===e?`/${a}/deployments`:`/${a}/deployments/${encodeURIComponent(n)}`,"aria-current":x?"page":void 0,"data-testid":"deployments-environment",className:eI.environment,children:[(0,t.jsx)(s.PA,{inline:!0,expandable:!0,title:n,sx:{maxWidth:225,fontWeight:x?"bold":"normal"},children:n}),"0"!==e&&f&&(u?(0,t.jsx)(eE.c.TrailingAction,{onMouseOver:()=>{p(!0)},onMouseOut:()=>{p(!1)},onFocus:()=>{p(!0)},onBlur:()=>{p(!1)},icon:m?h.PinSlashIcon:h.PinIcon,label:`Unpin ${n} environment`,onClick:_}):(0,t.jsx)(h.PinIcon,{})),u&&"0"!==e&&!f&&(0,t.jsx)(eE.c.TrailingAction,{className:eI.unpinned,icon:h.PinIcon,label:`Pin ${n} environment`,onClick:_})]})};try{eP.displayName||(eP.displayName="EnvironmentListItem")}catch{}function eA({adminable:e,repositoryRef:n,repoScope:l,pinnedEnvConnectionId:a}){let{data:i,loadNext:r,hasNext:d}=(({key:e})=>{let{data:n,loadNext:l,hasNext:a,isLoadingNext:t}=(0,o.usePaginationFragment)(ej,e);return{data:n,loadNext:l,hasNext:a,isLoadingNext:t}})({key:n}),u=(({key:e})=>(0,o.useFragment)(eC,e))({key:n}),c=(0,g.useContext)(y.n),m=(0,g.useMemo)(()=>{let e=i.environments?.edges?.map(e=>({name:e?.node?.name,id:e?.node?.id,pinned:e?.node?.isPinned}))||[];return[...u.listPinnedEnvironments?.edges?.map(e=>({name:e?.node?.name,id:e?.node?.id,pinned:e?.node?.isPinned}))||[],...e]},[i,u]),p=(0,g.useMemo)(()=>c&&!m?.some(e=>e.name===c),[c]);return(0,t.jsxs)("div",{children:[(0,t.jsx)(s.az,{sx:{display:"flex",alignItems:"center",flexWrap:"wrap",px:2,pt:1},children:(0,t.jsx)(s.DZ,{as:"h1",sx:{fontSize:3},children:"Deployments"})}),(0,t.jsxs)(eE.c,{"data-testid":"environment-list",className:eI.environmentlist,children:[(0,t.jsx)(eP,{id:"0",pinned:!1,name:"All deployments",repoScope:l}),(0,t.jsxs)(eE.c.Group,{title:"Environments",children:[p&&(0,t.jsx)(eP,{id:"-1",name:c||"",pinned:!1,repoScope:l,pinnedEnvConnectionId:a}),m&&m.map((e,n)=>e.pinned&&(0,t.jsx)(eP,{id:e.id,pinned:e.pinned,name:e.name,repoScope:l,"data-testid":"pinned-environment",pinnedEnvConnectionId:a},n)),m&&m.map((e,n)=>p&&e.name===c||e.pinned?null:(0,t.jsx)(eP,{id:e.id,pinned:e.pinned,name:e.name,repoScope:l,pinnedEnvConnectionId:a},n)),d&&(0,t.jsx)(eE.c.Item,{className:"color-fg-accent",onClick:()=>r(50),children:"Show more environments"}),(0,t.jsx)(eE.c.Divider,{}),e&&(0,t.jsxs)(eE.c.Item,{href:`/${l}/settings/environments`,children:[(0,t.jsx)(eE.c.LeadingVisual,{children:(0,t.jsx)(h.GearIcon,{})}),"Manage environments"]})]})]})]})}try{eA.displayName||(eA.displayName="EnvironmentList")}catch{}let eD={SplitPageLayout_Pane:"Deployments-module__SplitPageLayout_Pane--VzJqw"},eV=i.A,eM=({queries:{deploymentQuery:e}})=>{let[n,l]=(0,g.useState)(""),a=(0,o.usePreloadedQuery)(eV,e),i=`${a.repository?.owner?.login}/${a.repository?.name}`,d=(0,g.useContext)(y.n);return(0,t.jsx)(s.az,{"data-hpc":!0,sx:{minHeight:"100%","> div":{minHeight:"100%"},borderColor:"border.default",borderBottomWidth:0,borderTopWidth:0,borderLeftWidth:1,borderRightWidth:0,borderStyle:"solid"},children:(0,t.jsxs)(r.O7,{children:[(0,t.jsx)(r.O7.Pane,{position:"start",sticky:!0,width:"large",divider:{regular:"line",narrow:"none"},padding:"condensed",className:eD.SplitPageLayout_Pane,children:(0,t.jsx)(g.Suspense,{fallback:(0,t.jsx)(en.y,{}),children:(0,t.jsx)(eA,{adminable:a.repository?.viewerCanAdminister&&a.repository?.canUseEnvironments,repositoryRef:a.repository,repoScope:i,pinnedEnvConnectionId:n})})}),(0,t.jsx)(r.O7.Content,{width:"xlarge",as:"div",children:(0,t.jsx)(s.az,{sx:{maxWidth:"2015px"},children:(0,t.jsx)("div",{children:(0,t.jsx)("div",{children:(0,t.jsxs)("div",{children:[(0,t.jsx)(g.Suspense,{fallback:(0,t.jsx)(en.y,{}),children:!d&&(0,t.jsx)(ew,{pinnedEnvConnectionId:n,setConnectionId:l,repositoryRef:a.repository})}),(0,t.jsx)(g.Suspense,{fallback:(0,t.jsx)(en.y,{}),children:(0,t.jsx)(e_,{repositoryRef:a.repository,repoScope:i})})]})})})})})]})})}},54571:(e,n,l)=>{"use strict";l.d(n,{I:()=>r});var a=l(96540),t=l(88431),i=l(76629);function r(e,n,l=[]){let s=(0,a.useCallback)(e,l),o=(0,i.BP)(),d=(0,a.useRef)(o===i.O8.ClientRender),[u,c]=(0,a.useState)(()=>o===i.O8.ClientRender?s():n),m=(0,a.useCallback)(()=>{c(s)},[s]);return(0,t.N)(()=>{d.current||c(s),d.current=!1},[s,...l]),[u,m]}},60221:(e,n,l)=>{"use strict";var a=l(79961),t=l(40548),i=l(44686),r=l(96540),s=l(53747),o=l(25111),d=l(30721),u=l(11501);let c=(0,d.E7)();(0,t.o)("repo-deployments",()=>({App:a.q,routes:[(0,o.X)({path:"/:owner/:repo/deployments",resourceName:"Deployments",componentLoader:async()=>(await Promise.resolve().then(l.bind(l,53747))).Deployments,Component:s.Deployments,queryConfigs:{deploymentQuery:{concreteRequest:u.A,variableMappers:e=>({owner:e.pathParams.owner,repo:e.pathParams.repo})}},title:"",relayEnvironment:c,fallback:(0,r.createElement)(i.y)}),(0,o.X)({path:"/:owner/:repo/deployments/:environment",resourceName:"Deployments",componentLoader:async()=>(await Promise.resolve().then(l.bind(l,53747))).Deployments,Component:s.Deployments,queryConfigs:{deploymentQuery:{concreteRequest:u.A,variableMappers:e=>({owner:e.pathParams.owner,repo:e.pathParams.repo})}},title:"",relayEnvironment:c,fallback:(0,r.createElement)(i.y)})]}))},63350:(e,n,l)=>{"use strict";l.d(n,{X:()=>w});var a,t=l(74848),i=l(4559),r=l(29731),s=l(34164),o=l(96540);let d={normal:"density-gap-module__normal--HBwlC",none:"density-gap-module__none--DjJ9h",condensed:"density-gap-module__condensed--Dc3l4",spacious:"density-gap-module__spacious--lp7L7"};var u=l(56825),c=l(91230);let m={container:"ActionBar-module__container--fcK9p"},p=({actions:e,style:n,className:l,children:a,density:i,actionsLabel:o,densityToggle:u,overflowMenuProps:p,overflowMenuToggleProps:g})=>{let y=(0,t.jsxs)(t.Fragment,{children:[a,u]});return e&&e.length>0?(0,t.jsx)(c.E7,{label:o?.trim(),actions:e,density:i,overflowMenuProps:p,overflowMenuToggleProps:g,...(0,r.G)("list-view-actions"),style:n,className:l,children:y}):(0,t.jsx)("div",{...(0,r.G)("list-view-actions"),style:n,className:(0,s.$)(m.container,i&&d[i],l),children:y})};try{p.displayName||(p.displayName="ListViewActionBar")}catch{}var g=l(75986);let y={container:"Metadata-module__container--ydeM8",heading:"Metadata-module__heading--vvkcl"},f={container:"SectionFilters-module__container--gpzjI"},k=({links:e})=>e.length<1?null:(0,t.jsx)("div",{...(0,r.G)("list-view-section-filters"),children:(0,t.jsx)("ul",{className:(0,s.$)("list-style-none",f.container),children:e.map((e,n)=>(0,t.jsx)("li",{...(0,r.G)(`list-view-section-filter-${n}`),children:e},`section-filter-${n}`))})});try{k.displayName||(k.displayName="ListViewSectionFilters")}catch{}var h=l(86877),_=l(46720),x=l(53687);let b={container:"SelectAllCheckbox-module__container--MgNnp",formControlContainer:"SelectAllCheckbox-module__formControlContainer--dgXVq",count:"SelectAllCheckbox-module__count--OFClN"};var F=l(24347),L=l(61015);let S=({onToggle:e,style:n,className:l})=>{let{title:a}=(0,L.t)(),{isSelectable:d,selectedCount:u,totalCount:c,countOnPage:m,isSelectAllChecked:p,anyItemsSelected:g,singularUnits:y,pluralUnits:f}=(0,F.v)(),{multiPageSelectionAllowed:k}=(0,x.P)(),S=(0,o.useId)(),K=(0,o.useRef)(null),w=(0,o.useRef)(null),N=(0,o.useMemo)(()=>k&&"number"==typeof c?u{e&&(j?e(!1):e(!p))},[j,p,e]);if((0,o.useEffect)(()=>{w.current&&(0,i.C)(w.current)},[w,T]),!d)return null;let R=`${S}-list-view-select-all`;return(0,t.jsxs)("div",{style:n,className:(0,s.$)(b.container,l),...(0,r.G)("list-view-select-all-container"),id:`${S}-list-view-select-all-container`,children:[(0,t.jsx)("div",{className:b.formControlContainer,children:(0,t.jsxs)(h.A,{id:R,children:[(0,t.jsx)(_.A,{onChange:I,value:"default",checked:p,indeterminate:j,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),I())},tabIndex:0,ref:K,...(0,r.G)("select-all-checkbox")}),(0,t.jsxs)(h.A.Label,{visuallyHidden:!0,...(0,r.G)("select-all-label"),children:["Select all ",f,": ",a]})]})}),(0,t.jsxs)("p",{className:(0,s.$)(b.count,g?void 0:"sr-only"),...(0,r.G)("select-all-selected-count"),children:[(0,t.jsxs)("span",{"aria-hidden":"true",className:g?void 0:"sr-only",...(0,r.G)("select-all-selected-count-without-units"),children:[u," ",E," "]}),(0,t.jsx)("span",{className:"sr-only",ref:w,...(0,r.G)("sr-content"),children:T})]})]})};try{S.displayName||(S.displayName="ListViewSelectAllCheckbox")}catch{}let K=({sectionFilters:e})=>e?Array.isArray(e)?(0,t.jsx)(k,{links:e}):(0,o.isValidElement)(e)?(0,t.jsx)(t.Fragment,{children:e}):null:null,w=({title:e,assistiveAnnouncement:n,sectionFilters:l,children:a,style:c,className:m,actionsStyle:f,actionsClassName:k,onToggleSelectAll:h,overflowMenuProps:_,overflowMenuToggleProps:x,...b})=>{let{idPrefix:w}=(0,g.If)(),{anyItemsSelected:j}=(0,F.v)(),{setHasMetadataTitle:C}=(0,L.t)(),E=(0,u.m)("list-view-metadata"),T=(0,o.useRef)(null);return(0,o.useEffect)(()=>{C(!!e)}),(0,o.useEffect)(()=>{T.current&&(0,i.C)(T.current)},[n]),(0,t.jsxs)("div",{id:`${w}-list-view-metadata`,className:(0,s.$)(y.container,m,j&&d.spacious),style:c,...(0,r.G)("list-view-metadata"),children:[(0,t.jsx)(S,{onToggle:e=>{h&&h(e)}}),(0,t.jsx)(K,{sectionFilters:l}),!!e&&(0,t.jsx)(E,{className:(0,s.$)(y.heading,j&&"sr-only"),...(0,r.G)("list-view-header-title"),children:e}),(0,t.jsx)(p,{style:f,className:k,overflowMenuProps:_,overflowMenuToggleProps:x,...b,children:a}),n&&(0,t.jsx)(N,{idPrefix:w,announceRef:T,assistiveAnnouncement:n})]})},N=({idPrefix:e,announceRef:n,assistiveAnnouncement:l})=>(0,t.jsx)("div",{id:`${e}-list-view-announcements`,role:"status","aria-live":"polite","aria-atomic":"true",className:"sr-only",ref:n,...(0,r.G)("list-view-announcement-container"),children:l});try{K.displayName||(K.displayName="ListFilters")}catch{}try{w.displayName||(w.displayName="ListViewMetadata")}catch{}try{(a=TitleTag).displayName||(a.displayName="TitleTag")}catch{}try{N.displayName||(N.displayName="ListViewAnnouncements")}catch{}},65964:(e,n,l)=>{"use strict";l.d(n,{e:()=>g});var a=l(74848),t=l(29731),i=l(10436),r=l(34164),s=l(96540),o=l(35220);let d={outer:"LeadingVisual-module__outer--qS9Ac",hasNewActivity:"LeadingVisual-module__hasNewActivity--qA_H9",defaultVariant:"LeadingVisual-module__defaultVariant--Qhbnu",inner:"LeadingVisual-module__inner--GeEeG"};var u=l(49744),c=l(27603);let m={container:"UnreadIndicator-module__container--X6F4o"},p=()=>(0,a.jsx)("div",{className:m.container,children:(0,a.jsx)("span",{className:"sr-only",...(0,t.G)("list-view-item-unread-indicator"),children:"New activity."})});try{p.displayName||(p.displayName="ListItemUnreadIndicator")}catch{}function g({icon:e,color:n,description:l,newActivity:m=!1,className:g,children:y,...f}){let{variant:k}=(0,o.e)(),{setStatus:h}=(0,c.x)(),{setHasNewActivity:_}=(0,u.I)(),x=l?.trim();return(0,s.useEffect)(()=>{_(m)},[m,_]),(0,s.useEffect)(()=>{x&&h(x)},[h,x]),(0,a.jsxs)("div",{className:(0,r.$)(d.outer,"default"===k&&d.defaultVariant,m&&d.hasNewActivity,g),...f,children:[(0,a.jsx)("div",{children:(0,a.jsxs)("div",{...(0,t.G)("list-view-leading-visual"),className:d.inner,children:[e&&(0,a.jsx)(i.m4,{"aria-label":"",icon:e,color:n}),y,x&&(0,a.jsx)("span",{className:"sr-only",...(0,t.G)("leading-visual-text-description"),children:x})]})}),m&&(0,a.jsx)(p,{})]})}try{g.displayName||(g.displayName="ListItemLeadingVisual")}catch{}},73017:(e,n,l)=>{"use strict";l.d(n,{$6:()=>d,JR:()=>s,vb:()=>r});var a=l(74848),t=l(87448),i=l(96540);let r=u(t.az),s=u(t.EY),o=(0,i.forwardRef)((e,n)=>(0,a.jsx)("div",{ref:n,...e}));o.displayName="Div";let d=u(o);function u(e){let n=(0,i.forwardRef)((n,l)=>{let{html:t,...i}=n;return(0,a.jsx)(e,{ref:l,...i,dangerouslySetInnerHTML:t?{__html:t}:void 0})});return n.displayName=`SafeHTML${e.displayName||e.name}`,n}try{r.displayName||(r.displayName="VerifiedHTMLBox")}catch{}try{s.displayName||(s.displayName="VerifiedHTMLText")}catch{}try{d.displayName||(d.displayName="VerifiedHTMLDiv")}catch{}},79961:(e,n,l)=>{"use strict";l.d(n,{n:()=>d,q:()=>c});var a=l(74848),t=l(34784),i=l(30721),r=l(34392),s=l(96540),o=l(88934);let d=(0,s.createContext)(null),u=RegExp("/[^/]+/[^/]+/deployments/(\\S+)");function c({children:e,environment:n}){let l=(0,o.zy)(),[u,c]=(0,s.useState)(()=>m(l.pathname));return(0,s.useEffect)(()=>{let e=m(l.pathname);return u!==e&&c(e),()=>{}},[u,c,l]),(0,a.jsxs)(d.Provider,{value:u,children:[(0,a.jsx)(t.RelayEnvironmentProvider,{environment:n??(0,i.E7)(),children:e}),(0,a.jsx)(r.s,{})]})}let m=e=>{let n=e.match(u);return n&&n[1]?decodeURIComponent(n[1]):null};try{d.displayName||(d.displayName="EnvironmentContext")}catch{}try{u.displayName||(u.displayName="DEPLOYMENT_REGEX")}catch{}try{c.displayName||(c.displayName="App")}catch{}},87057:(e,n,l)=>{"use strict";l.d(n,{O:()=>r,S:()=>i});var a=l(71315);let t=a.cg?.document?.head?.querySelector('meta[name="release"]')?.content||"",i="X-GitHub-Client-Version";function r(){return t}},91385:(e,n,l)=>{"use strict";l.d(n,{Xq:()=>s,ai:()=>t,fN:()=>r,qA:()=>o});var a=-1/0,t=1/0;function i(e,n,l,t){for(var i=e.length,r=n.length,s=e.toLowerCase(),o=n.toLowerCase(),d=function(e){for(var n=e.length,l=Array(n),a="/",t=0;t1024)return a;var s=Array(l),o=Array(l);return i(e,n,s,o),o[l-1][r-1]}function s(e,n){var l=e.length,t=n.length,r=Array(l);if(!l||!t)return r;if(l===t){for(var s=0;s1024)return r;var o=Array(l),d=Array(l);i(e,n,o,d);for(var u=!1,s=l-1,c=t-1;s>=0;s--)for(;c>=0;c--)if(o[s][c]!==a&&(u||o[s][c]===d[s][c])){u=s&&c&&d[s][c]===o[s-1][c-1]+1,r[s]=c--;break}return r}function o(e,n){e=e.toLowerCase(),n=n.toLowerCase();for(var l=e.length,a=0,t=0;a{"use strict";l.d(n,{kx:()=>L,ao:()=>F});var a,t,i=l(74848),r=l(20263),s=l(73017),o=l(29731),d=l(34164),u=l(96540),c=l(56825),m=l(35220),p=l(87670),g=l(46720),y=l(24347);let f={container:"Selection-module__container--OQE4d",containerWithDragHandle:"Selection-module__containerWithDragHandle--mLWh4",dragTrigger:"Selection-module__dragTrigger--SM4bZ",compact:"Selection-module__compact--azMKM",checkbox:"Selection-module__checkbox--X3ras",checkboxCompact:"Selection-module__checkboxCompact--zfQtx"};var k=l(60257),h=l(74501);let _=()=>{let{variant:e}=(0,m.e)(),{isSelectable:n,hasDragHandle:l}=(0,y.v)(),{isSelected:a,onSelect:t}=(0,k.r)(),{title:r}=(0,h.J)();return n?(0,i.jsxs)("div",{className:l?f.containerWithDragHandle:f.container,...(0,o.G)("list-view-item-selection"),children:[l&&(0,i.jsx)(p.BS.DragTrigger,{className:(0,d.$)(f.dragTrigger,"compact"===e&&f.compact)}),(0,i.jsx)(g.A,{className:"default"===e?f.checkbox:f.checkboxCompact,checked:a,onChange:()=>t(!a),"aria-label":`Select: ${r}`,"data-listview-component":"selection-input",...(0,o.G)("list-view-item-selection-input")})]}):null};try{_.displayName||(_.displayName="ListItemSelection")}catch{}let x={anchor:"Title-module__anchor--GmXUE",heading:"Title-module__heading--s7YnL",compact:"Title-module__compact--eK6hD",container:"Title-module__container--XD9YG",trailingBadgesSpacer:"Title-module__trailingBadgesSpacer--Son9W",trailingBadgesContainer:"Title-module__trailingBadgesContainer--mijcn",inline:"Title-module__inline--oM0P7"};function b({children:e,containerStyle:n,containerClassName:l,headerContainerRef:a,headingStyle:t,headingClassName:r,headingRef:s,leadingBadge:u,trailingBadges:p,header:g}){let{variant:y}=(0,m.e)(),{headingRef:f}=(0,h.J)(),k=(0,c.m)("listitem");return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{...(0,o.G)("list-view-item-title-container"),style:n,className:(0,d.$)(x.container,"compact"===y&&x.compact,l),ref:a,children:[(0,i.jsxs)(k,{className:(0,d.$)(x.heading,"compact"===y&&x.compact,r),style:t,ref:e=>{if(f&&(f.current=e),s&&"current"in s)try{s.current=e}catch{}},...(0,o.G)("list-view-item-title"),children:[u,g]}),p&&(0,i.jsx)("span",{className:x.trailingBadgesSpacer}),(0,i.jsx)("span",{className:x.trailingBadgesContainer,children:p}),e]}),(0,i.jsx)(_,{})]})}function F({children:e,value:n,containerStyle:l,containerClassName:a,headerContainerRef:t,headingStyle:r,headingClassName:s,headingRef:o,leadingBadge:d,trailingBadges:c,anchorRef:m,...p}){let g=(0,u.useRef)(null),y=m||g;return K({anchorRef:y,...p}),(0,i.jsx)(b,{header:p.href||p.onClick?(0,i.jsx)(S,{anchorRef:y,...p,children:(0,i.jsx)("span",{children:n})}):(0,i.jsx)("span",{children:n}),containerStyle:l,containerClassName:a,headerContainerRef:t,headingStyle:r,headingClassName:s,headingRef:o,leadingBadge:d,trailingBadges:c,children:e})}function L({children:e,html:n,containerStyle:l,containerClassName:a,headerContainerRef:t,headingStyle:s,headingClassName:o,headingRef:d,leadingBadge:u,trailingBadges:c,...m}){return K(m),(0,i.jsx)(b,{header:(0,i.jsx)(r.BC,{html:n,...m}),containerStyle:l,containerClassName:a,headerContainerRef:t,headingStyle:s,headingClassName:o,headingRef:d,leadingBadge:u,trailingBadges:c,children:e})}function S({anchorStyle:e,anchorClassName:n,anchorRef:l,linkProps:a,children:t,...r}){let{as:s="a",...c}=a??{},m=(0,u.useRef)(null);return(0,i.jsx)(s,{...(0,o.G)("listitem-title-link"),style:e,ref:l||m,className:(0,d.$)(x.anchor,x.inline,n),...r,...c,children:t})}let K=({href:e,onClick:n,anchorRef:l})=>{let{setTitleAction:a,headingRef:t}=(0,h.J)();return(0,u.useEffect)(()=>{(e||n)&&a(()=>n=>{if(e&&(n.metaKey||n.ctrlKey))window.open(e,"_blank");else if(l?.current)l.current.click();else if(t?.current){let e=t.current.querySelector("a, button");e&&e.click()}})},[l,t,e,n,a]),null};try{b.displayName||(b.displayName="InternalTitle")}catch{}try{(a=TitleTag).displayName||(a.displayName="TitleTag")}catch{}try{F.displayName||(F.displayName="ListItemTitle")}catch{}try{L.displayName||(L.displayName="ListItemSafeHTMLTitle")}catch{}try{(t=function({children:e,html:n,containerStyle:l,containerClassName:a,headerContainerRef:t,headingStyle:r,headingClassName:o,headingRef:d,leadingBadge:u,trailingBadges:c,...m}){return K(m),(0,i.jsx)(b,{header:(0,i.jsx)(s.JR,{html:n,...m}),containerStyle:l,containerClassName:a,headerContainerRef:t,headingStyle:r,headingClassName:o,headingRef:d,leadingBadge:u,trailingBadges:c,children:e})}).displayName||(t.displayName="ListItemUnsafeHTMLTitle")}catch{}try{S.displayName||(S.displayName="HeadingLink")}catch{}},96379:(e,n,l)=>{"use strict";l.d(n,{DI:()=>r,QJ:()=>o,Sr:()=>d,lS:()=>s});var a=l(51987),t=l(88057),i=l(37285);async function r(e,n={}){var l=e;if(new URL(l,window.location.origin).origin!==window.location.origin)throw Error("Can not make cross-origin requests from verifiedFetch");let{tracingEnabled:s,fetchPath:o}=function(e){let n=new URL(e,window.location.href),l=new URL(window.location.href,window.location.origin),a=l.searchParams.get("_features");a&&!n.searchParams.has("_features")&&n.searchParams.set("_features",a);let t=l.searchParams.get("_tracing");return t&&!n.searchParams.has("_tracing")&&n.searchParams.set("_tracing",t),{tracingEnabled:!!t,fetchPath:e.startsWith(window.location.origin)?n.href:`${n.pathname}${n.search}`}}(e),d={...n.headers,"GitHub-Verified-Fetch":"true",...(0,a.kt)()},u=await fetch(o,{...n,headers:d}),c=u?.headers?.get("X-Github-Request-Id");if(c&&(0,t.Ex)(c),s&&u){let e=u.clone();try{let n=await e.text(),l=n&&JSON.parse(n);(0,i.Av)(l)}catch{}}return u}function s(e,n){let l={...n?.headers??{},Accept:"application/json","Content-Type":"application/json"},a=n?.body?JSON.stringify(n.body):void 0;return r(e,{...n,body:a,headers:l})}function o(e,n={}){let l={...n.headers,"GitHub-Is-React":"true"};return r(e,{...n,headers:l})}function d(e,n){let l={...n?.headers??{},"GitHub-Is-React":"true"};return s(e,{...n,headers:l})}},96459:(e,n,l)=>{"use strict";l.d(n,{Z:()=>d,o:()=>u});var a=l(96540),t=l(88934),i=l(41245),r=l(65432),s=l(58578),o=l(24518);let d=()=>{let{routes:e}=a.useContext(o.k),n=(0,t.Zp)();return a.useCallback((o,d={})=>{let u=(0,t.o1)(o).pathname;if(!(0,t.ue)(e,u)||d.reloadDocument){let e="string"==typeof o?o:(0,t.AO)(o);d.preventTurbo?window.location.href=e:(async()=>{let{softNavigate:n}=await Promise.all([l.e("vendors-node_modules_github_turbo_dist_turbo_es2017-esm_js"),l.e("packages_soft-navigate_soft-navigate_ts")]).then(l.bind(l,54563));n(e)})()}else{(0,i.A)(location.href,o.toString())||(0,r.SC)("react");let{preventAutofocus:e,...l}=d;(0,a.startTransition)(()=>{n(o,e?{...l,state:{[s.V]:!0,...l.state}}:l)})}},[n,e])},u=()=>{let[e]=(0,t.ok)(),n=d(),{pathname:l}=(0,t.zy)(),i=a.useCallback((a,i={})=>{n({pathname:l,search:(0,t.PI)("function"==typeof a?a(e):a).toString()},i)},[e,n,l]);return[e,i]}},98994:(e,n,l)=>{"use strict";l.d(n,{U:()=>o});var a=l(74848),t=l(29731),i=l(34164),r=l(35220);let s={container:"Description-module__container--Zwqe8",compact:"Description-module__compact--Lw6nW"};function o({children:e,style:n,className:l}){let{variant:o}=(0,r.e)();return(0,a.jsx)("div",{...(0,t.G)("list-view-item-description"),className:(0,i.$)(s.container,"compact"===o&&s.compact,l),style:n,children:e})}try{o.displayName||(o.displayName="ListItemDescription")}catch{}}},e=>{e.O(0,["primer-react","react-lib","react-core","octicons-react","vendors-node_modules_primer_behaviors_dist_esm_index_mjs","vendors-node_modules_oddbird_popover-polyfill_dist_popover-fn_js","vendors-node_modules_stacktrace-parser_dist_stack-trace-parser_esm_js-node_modules_github_bro-2f4e04","vendors-node_modules_emotion_is-prop-valid_dist_emotion-is-prop-valid_esm_js-node_modules_emo-825c28","vendors-node_modules_github_mini-throttle_dist_index_js-node_modules_github_hydro-analytics-c-c228f9","vendors-node_modules_tanstack_query-core_build_modern_mutation_js-node_modules_tanstack_query-9bf7e4","vendors-node_modules_swc_helpers_esm__class_private_method_get_js-node_modules_swc_helpers_es-d6b1a6","vendors-node_modules_dompurify_dist_purify_es_mjs","vendors-node_modules_date-fns_format_mjs","vendors-node_modules_lodash-es__Stack_js-node_modules_lodash-es__Uint8Array_js-node_modules_l-4faaa6","vendors-node_modules_date-fns_addWeeks_mjs-node_modules_date-fns_addYears_mjs-node_modules_da-827f4f","vendors-node_modules_github_relative-time-element_dist_index_js","vendors-node_modules_github_hotkey_dist_index_js-node_modules_date-fns_getDaysInMonth_mjs-nod-70c11b","vendors-node_modules_github_hydro-analytics-client_dist_analytics-client_js-node_modules_gith-c7919d","vendors-node_modules_dnd-kit_modifiers_dist_modifiers_esm_js-node_modules_dnd-kit_sortable_di-5ada6e","vendors-node_modules_lodash-es_cloneDeep_js","vendors-node_modules_braintree_browser-detection_dist_browser-detection_js-node_modules_githu-bb80ec","vendors-node_modules_react-relay_index_js","vendors-node_modules_github_catalyst_lib_index_js-node_modules_swc_helpers_esm__class_static_-5988f50","packages_document-metadata_document-metadata_ts-packages_failbot_failbot_ts","packages_paths_index_ts","packages_history_history_ts-packages_promise-with-resolvers-polyfill_promise-with-resolvers-p-2cdd04","packages_ui-commands_ui-commands_ts","packages_date-picker_components_DatePicker_tsx","packages_drag-and-drop_drag-and-drop_ts-packages_hydro-analytics_hydro-analytics_ts","packages_list-view_src_hooks_use-next-header-tag_ts-packages_list-view_src_ListItem_ListItem_-055669","packages_filter_utils_index_ts-packages_fuzzy-score_fuzzy-score_ts-packages_use-analytics_use-efa20b","packages_filter_Filter_tsx","packages_filter_providers_index_ts","packages_relay-environment_relay-environment_ts"],()=>e(e.s=60221)),e.O()}]); //# sourceMappingURL=repo-deployments-a7b9b6c73847.js.map